#242A7F#242A7F
#242A7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.141 H 273.1°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #242A7F |
|---|---|
| RGB | rgb(36, 42, 127) |
| HSL | hsl(236, 56%, 32%) |
| HSV | hsv(236, 72%, 50%) |
| CMYK | cmyk(71.7%, 66.9%, 0%, 50.2%) |
| CIE-LAB | lab(22.17, 27.51, -48.78) |
| CIE-LCH | lch(22.17, 56.00, 299.42°) |
| OKLab | oklab(34.02% 0.0076 -0.1408) |
| OKLCH | oklch(34.02% 0.141 273.1) |
| XYZ | xyz(5.3850, 3.5628, 20.4785) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.82
Royal
#0C1793
ΔE00 6.04
Darkslateblue
#483D8B
ΔE00 7.05
Sapphire (survey)
#2138AB
ΔE00 7.16
Blueberry
#464196
ΔE00 7.76
Marine
#042E60
ΔE00 7.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#242A7F #7F7924
analogous
#24587F #242A7F #4C247F
triadic
#242A7F #7F242A #2A7F24
tetradic
#242A7F #7F2458 #7F7924 #247F4C
square
#242A7F #7F2458 #7F7924 #247F4C
split-complementary
#242A7F #7F4C24 #587F24
monochromatic
#090A20 #161A4F #242A7F #323AAF #5058CD
Accessibility & contrast
On white
12.26
#242A7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#242A7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #242A7F
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##242A7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##242A7F | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #242a7f; /* rgb */ color: rgb(36, 42, 127); /* oklch */ color: oklch(34.0% 0.141 273.1);
Tailwind
colors: {
custom: {
50: '#6c63a5',
500: '#242a7f',
950: '#000000',
},
}SCSS
$custom: #242a7f; $custom-light: #6c63a5; $custom-dark: #000000;
JSON
{
"hex": "#242a7f",
"rgb": {
"r": 36,
"g": 42,
"b": 127
},
"hsl": {
"h": 236.044,
"s": 55.828,
"l": 31.961
},
"oklch": {
"l": 0.34021,
"c": 0.14105,
"h": 273.1
},
"luminance": 0.03563
}Semantic roles & 50–950 ramp
primary
#242A7F
secondary
#B1AB4E
accent
#D549DF
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F