#12315F#12315F
#12315F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 31.8% C 0.090 H 258.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #12315F |
|---|---|
| RGB | rgb(18, 49, 95) |
| HSL | hsl(216, 68%, 22%) |
| HSV | hsv(216, 81%, 37%) |
| CMYK | cmyk(81.1%, 48.4%, 0%, 62.7%) |
| CIE-LAB | lab(20.64, 7.02, -30.68) |
| CIE-LCH | lch(20.64, 31.48, 282.89°) |
| OKLab | oklab(31.8% -0.018 -0.088) |
| OKLCH | oklch(31.8% 0.09 258.4) |
| XYZ | xyz(3.4126, 3.1511, 11.2526) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 1.32
Marine Blue
#01386A
ΔE00 3.47
Navy Blue
#1B2A4A
ΔE00 4.75
Darkish Blue
#014182
ΔE00 6.71
Twilight Blue
#0A437A
ΔE00 6.78
Prussian Blue
#004577
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12315F #5F4012
analogous
#12585F #12315F #19125F
triadic
#12315F #5F1231 #315F12
tetradic
#12315F #5F1258 #5F4012 #125F19
square
#12315F #5F1258 #5F4012 #125F19
split-complementary
#12315F #5F1912 #585F12
monochromatic
#050D1A #08162C #12315F #1C4C92 #2566C6
Accessibility & contrast
On white
12.88
#12315F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#12315F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12315F
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12315F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12315F | 1.00 | 12.88 | 1.63 | 12.88 |
| #FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#193561
Deuteranopia (green-blind)
#082E5E
Tritanopia (blue-blind)
#003C43
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #12315f; /* rgb */ color: rgb(18, 49, 95); /* oklch */ color: oklch(31.8% 0.090 258.4);
Tailwind
colors: {
custom: {
50: '#5d688d',
500: '#12315f',
950: '#000000',
},
}SCSS
$custom: #12315f; $custom-light: #5d688d; $custom-dark: #000000;
JSON
{
"hex": "#12315f",
"rgb": {
"r": 18,
"g": 49,
"b": 95
},
"hsl": {
"h": 215.844,
"s": 68.142,
"l": 22.157
},
"oklch": {
"l": 0.31795,
"c": 0.08979,
"h": 258.4
},
"luminance": 0.03151
}Semantic roles & 50–950 ramp
primary
#12315F
secondary
#977036
accent
#A53DEB
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D