#123F8A#123F8A
#123F8A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.6% C 0.134 H 260.3°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #123F8A |
|---|---|
| RGB | rgb(18, 63, 138) |
| HSL | hsl(218, 77%, 31%) |
| HSV | hsv(218, 87%, 54%) |
| CMYK | cmyk(87%, 54.3%, 0%, 45.9%) |
| CIE-LAB | lab(28.16, 15.29, -45.93) |
| CIE-LCH | lch(28.16, 48.41, 288.42°) |
| OKLab | oklab(38.58% -0.0227 -0.1325) |
| OKLCH | oklch(38.58% 0.134 260.3) |
| XYZ | xyz(6.6127, 5.5178, 24.7563) |
| Luminance | 0.0552 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkish Blue
#014182
ΔE00 2.48
Cobalt (survey)
#1E488F
ΔE00 2.87
Twilight Blue
#0A437A
ΔE00 3.73
Cobalt
#0047AB
ΔE00 4.76
Marine Blue
#01386A
ΔE00 5.02
Prussian Blue
#004577
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#123F8A #8A5D12
analogous
#127B8A #123F8A #21128A
triadic
#123F8A #8A123F #3F8A12
tetradic
#123F8A #8A127B #8A5D12 #128A21
square
#123F8A #8A127B #8A5D12 #128A21
split-complementary
#123F8A #8A2112 #7B8A12
monochromatic
#040E1E #0B2654 #123F8A #1958C0 #3275E4
Accessibility & contrast
On white
9.98
#123F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#123F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #123F8A
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##123F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##123F8A | 1.00 | 9.98 | 2.10 | 9.98 |
| #FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#04488D
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #123f8a; /* rgb */ color: rgb(18, 63, 138); /* oklch */ color: oklch(38.6% 0.134 260.3);
Tailwind
colors: {
custom: {
50: '#6873ad',
500: '#123f8a',
950: '#000000',
},
}SCSS
$custom: #123f8a; $custom-light: #6873ad; $custom-dark: #000000;
JSON
{
"hex": "#123f8a",
"rgb": {
"r": 18,
"g": 63,
"b": 138
},
"hsl": {
"h": 217.5,
"s": 76.923,
"l": 30.588
},
"oklch": {
"l": 0.38581,
"c": 0.13444,
"h": 260.3
},
"luminance": 0.05519
}Semantic roles & 50–950 ramp
primary
#123F8A
secondary
#BF8D39
accent
#AC34F3
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F