#2F317B#2F317B
#2F317B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.123 H 277.0°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2F317B |
|---|---|
| RGB | rgb(47, 49, 123) |
| HSL | hsl(238, 45%, 33%) |
| HSV | hsv(238, 62%, 48%) |
| CMYK | cmyk(61.8%, 60.2%, 0%, 51.8%) |
| CIE-LAB | lab(24.42, 23.13, -42.55) |
| CIE-LCH | lch(24.42, 48.43, 298.53°) |
| OKLab | oklab(35.77% 0.0151 -0.1222) |
| OKLCH | oklch(35.77% 0.123 277) |
| XYZ | xyz(5.8446, 4.2306, 19.2436) |
| Luminance | 0.0423 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.21
Blueberry
#464196
ΔE00 6.26
Midnight Blue
#191970
ΔE00 6.79
Sapphire (survey)
#2138AB
ΔE00 7.55
Marine
#042E60
ΔE00 7.69
Royal
#0C1793
ΔE00 8.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F317B #7B792F
analogous
#2F577B #2F317B #532F7B
triadic
#2F317B #7B2F31 #317B2F
tetradic
#2F317B #7B2F57 #7B792F #2F7B53
square
#2F317B #7B2F57 #7B792F #2F7B53
split-complementary
#2F317B #7B532F #577B2F
monochromatic
#0D0E22 #1E1F4F #2F317B #4043A7 #6264C3
Accessibility & contrast
On white
11.37
#2F317B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#2F317B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F317B
11.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F317B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F317B | 1.00 | 11.37 | 1.85 | 11.37 |
| #FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2f317b; /* rgb */ color: rgb(47, 49, 123); /* oklch */ color: oklch(35.8% 0.123 277.0);
Tailwind
colors: {
custom: {
50: '#7069a2',
500: '#2f317b',
950: '#000000',
},
}SCSS
$custom: #2f317b; $custom-light: #7069a2; $custom-dark: #000000;
JSON
{
"hex": "#2f317b",
"rgb": {
"r": 47,
"g": 49,
"b": 123
},
"hsl": {
"h": 238.421,
"s": 44.706,
"l": 33.333
},
"oklch": {
"l": 0.35772,
"c": 0.12311,
"h": 277
},
"luminance": 0.04231
}Semantic roles & 50–950 ramp
primary
#2F317B
secondary
#AAA85C
accent
#D153D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F