#123F8E#123F8E
#123F8E is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.9% C 0.140 H 260.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).
Color values
| HEX | #123F8E |
|---|---|
| RGB | rgb(18, 63, 142) |
| HSL | hsl(218, 78%, 31%) |
| HSV | hsv(218, 87%, 56%) |
| CMYK | cmyk(87.3%, 55.6%, 0%, 44.3%) |
| CIE-LAB | lab(28.47, 16.96, -47.89) |
| CIE-LCH | lch(28.47, 50.81, 289.50°) |
| OKLab | oklab(38.92% -0.0222 -0.1383) |
| OKLCH | oklch(38.92% 0.14 260.9) |
| XYZ | xyz(6.9077, 5.6357, 26.3097) |
| Luminance | 0.0564 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.92
Darkish Blue
#014182
ΔE00 2.99
Twilight Blue
#0A437A
ΔE00 4.24
Cobalt
#0047AB
ΔE00 4.32
Marine Blue
#01386A
ΔE00 5.56
Prussian Blue
#004577
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#123F8E #8E6112
analogous
#127D8E #123F8E #23128E
triadic
#123F8E #8E123F #3F8E12
tetradic
#123F8E #8E127D #8E6112 #128E23
square
#123F8E #8E127D #8E6112 #128E23
split-complementary
#123F8E #8E2312 #7D8E12
monochromatic
#040F21 #0B2758 #123F8E #1957C4 #3575E5
Accessibility & contrast
On white
9.87
#123F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#123F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #123F8E
9.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##123F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##123F8E | 1.00 | 9.87 | 2.13 | 9.87 |
| #FFFFFF | 9.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #123f8e; /* rgb */ color: rgb(18, 63, 142); /* oklch */ color: oklch(38.9% 0.140 260.9);
Tailwind
colors: {
custom: {
50: '#6973b0',
500: '#123f8e',
950: '#000000',
},
}SCSS
$custom: #123f8e; $custom-light: #6973b0; $custom-dark: #000000;
JSON
{
"hex": "#123f8e",
"rgb": {
"r": 18,
"g": 63,
"b": 142
},
"hsl": {
"h": 218.226,
"s": 77.5,
"l": 31.373
},
"oklch": {
"l": 0.38917,
"c": 0.14005,
"h": 260.9
},
"luminance": 0.05637
}Semantic roles & 50–950 ramp
primary
#123F8E
secondary
#C2913A
accent
#AE34F4
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#070810
muted
#7A7B7F