#282874
Closest named color: Midnight Blue (#191970). oklch(32.9% 0.127 276.8), rgb(40, 40, 116).
Aa
White text reads best on this color (12.75:1).
About this color
#282874 is a dark, moderately saturated blue. In OKLCH its lightness is 33%, its chroma 0.127 and its hue 277°. Its hue sits on the cool side of the wheel. The nearest named color is Midnight Blue (#191970), ΔE 0.045 away. White text reads best on it, at 12.75:1.
| Hue family | Blues |
| Lightness | dark (33%) |
| Chroma | moderately saturated (0.127) |
| Temperature | cool |
| Nearest name | Midnight Blue (#191970) |
| Black text | 1.64:1 |
| White text | 12.75:1 |
Values
| HEX | #282874 |
| RGB | rgb(40, 40, 116) |
| HSL | hsl(240, 49%, 31%) |
| OKLCH | oklch(32.9% 0.127 276.8) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #282874 | 12.75:1 | AAA | Lc -101.8 | Preferred for body text |
| Black text on #282874 | 1.64:1 | Fails | Lc 0.0 | Not readable |
| #282874 text on white | 12.75:1 | AAA | Lc 98.4 | Preferred for body text |
| #282874 text on black | 1.64:1 | Fails | Lc 0.0 | Not readable |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 900.
-
Step 50
50
#F3F5FE
oklch(97.1% 0.012 276.1)
-
Step 100
100
#E5E9FD
oklch(93.7% 0.027 276.8)
-
Step 200
200
#D0D7FD
oklch(88.6% 0.053 277)
-
Step 300
300
#B0BBFE
oklch(80.8% 0.096 276.8)
-
Step 400
400
#8995FE
oklch(70.6% 0.153 276.8)
-
Step 500
500
#6F77FC
oklch(63.1% 0.195 276.7)
-
Step 600
600
#5A5BEB
oklch(55.6% 0.212 276.7)
-
Step 700
700
#4B49CC
oklch(49% 0.197 277)
-
Step 800
800
#3D3DA5
oklch(42.6% 0.163 277)
-
Step 900
900 (this color)
#282874
oklch(32.9% 0.127 276.8)
-
Step 950
950
#1E204D
oklch(27% 0.081 277.5)
#282874 with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #003676 | 0.046 |
| Deuteranopia (no green cones) | #002F73 | 0.039 |
| Tritanopia (no blue cones) | #003B4A | 0.105 |
| Achromatopsia (no color) | #323232 | 0.128 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #282874
#282874
oklch(32.9% 0.127 276.8)
- #3F3500
#3F3500
oklch(33% 0.068 97.5)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #282874, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Midnight Blue #191970 ΔE 0.045
- Marine #042E60 ΔE 0.054
- Marine Blue #01386A ΔE 0.055
- Prussian Blue #1D3557 ΔE 0.067
- Royal #0C1793 ΔE 0.071
- Twilight Blue #0A437A ΔE 0.074
- Indigo #4B0082 ΔE 0.084
- Dark Slate Blue #483D8B ΔE 0.088
Use #282874 in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.