#2F307A#2F307A
#2F307A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.123 H 277.5°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2F307A |
|---|---|
| RGB | rgb(47, 48, 122) |
| HSL | hsl(239, 44%, 33%) |
| HSV | hsv(239, 61%, 48%) |
| CMYK | cmyk(61.5%, 60.7%, 0%, 52.2%) |
| CIE-LAB | lab(24.07, 23.45, -42.48) |
| CIE-LCH | lch(24.07, 48.52, 298.90°) |
| OKLab | oklab(35.49% 0.0161 -0.122) |
| OKLCH | oklch(35.49% 0.123 277.5) |
| XYZ | xyz(5.7410, 4.1230, 18.9019) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.36
Blueberry
#464196
ΔE00 6.49
Midnight Blue
#191970
ΔE00 6.51
Sapphire (survey)
#2138AB
ΔE00 7.76
Marine
#042E60
ΔE00 7.76
Royal
#0C1793
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F307A #7A792F
analogous
#2F557A #2F307A #532F7A
triadic
#2F307A #7A2F30 #307A2F
tetradic
#2F307A #7A2F55 #7A792F #2F7A53
square
#2F307A #7A2F55 #7A792F #2F7A53
split-complementary
#2F307A #7A532F #557A2F
monochromatic
#0D0D22 #1E1F4E #2F307A #4041A6 #6162C2
Accessibility & contrast
On white
11.51
#2F307A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#2F307A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F307A
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F307A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F307A | 1.00 | 11.51 | 1.82 | 11.51 |
| #FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #2f307a; /* rgb */ color: rgb(47, 48, 122); /* oklch */ color: oklch(35.5% 0.123 277.5);
Tailwind
colors: {
custom: {
50: '#7068a1',
500: '#2f307a',
950: '#000000',
},
}SCSS
$custom: #2f307a; $custom-light: #7068a1; $custom-dark: #000000;
JSON
{
"hex": "#2f307a",
"rgb": {
"r": 47,
"g": 48,
"b": 122
},
"hsl": {
"h": 239.2,
"s": 44.379,
"l": 33.137
},
"oklch": {
"l": 0.35491,
"c": 0.12305,
"h": 277.5
},
"luminance": 0.04123
}Semantic roles & 50–950 ramp
primary
#2F307A
secondary
#A9A85C
accent
#D254D4
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F