#181C7A#181C7A
#181C7A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.154 H 270.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).
Color values
| HEX | #181C7A |
|---|---|
| RGB | rgb(24, 28, 122) |
| HSL | hsl(238, 67%, 29%) |
| HSV | hsv(238, 80%, 48%) |
| CMYK | cmyk(80.3%, 77%, 0%, 52.2%) |
| CIE-LAB | lab(17.60, 33.40, -53.15) |
| CIE-LCH | lch(17.60, 62.77, 302.15°) |
| OKLab | oklab(30.37% 0.0025 -0.1539) |
| OKLCH | oklch(30.37% 0.154 270.9) |
| XYZ | xyz(4.3036, 2.4294, 18.6507) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.67
Royal
#0C1793
ΔE00 3.98
Dark Royal Blue
#02066F
ΔE00 4.84
Deep Blue
#040273
ΔE00 5.33
Darkblue (survey)
#030764
ΔE00 5.45
Navy
#000080
ΔE00 5.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181C7A #7A7618
analogous
#184D7A #181C7A #45187A
triadic
#181C7A #7A181C #1C7A18
tetradic
#181C7A #7A184D #7A7618 #187A45
square
#181C7A #7A184D #7A7618 #187A45
split-complementary
#181C7A #7A4518 #4D7A18
monochromatic
#05061A #0E1047 #181C7A #2228AD #353CD7
Accessibility & contrast
On white
14.13
#181C7A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#181C7A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181C7A
14.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181C7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181C7A | 1.00 | 14.13 | 1.49 | 14.13 |
| #FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #181c7a; /* rgb */ color: rgb(24, 28, 122); /* oklch */ color: oklch(30.4% 0.154 270.9);
Tailwind
colors: {
custom: {
50: '#6859a2',
500: '#181c7a',
950: '#000000',
},
}SCSS
$custom: #181c7a; $custom-light: #6859a2; $custom-dark: #000000;
JSON
{
"hex": "#181c7a",
"rgb": {
"r": 24,
"g": 28,
"b": 122
},
"hsl": {
"h": 237.551,
"s": 67.123,
"l": 28.627
},
"oklch": {
"l": 0.3037,
"c": 0.15392,
"h": 270.9
},
"luminance": 0.0243
}Semantic roles & 50–950 ramp
primary
#181C7A
secondary
#AFAA3F
accent
#E33EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F