#2F3D98#2F3D98
#2F3D98 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.149 H 271.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3D98 |
|---|---|
| RGB | rgb(47, 61, 152) |
| HSL | hsl(232, 53%, 39%) |
| HSV | hsv(232, 69%, 60%) |
| CMYK | cmyk(69.1%, 59.9%, 0%, 40.4%) |
| CIE-LAB | lab(29.93, 25.67, -51.60) |
| CIE-LCH | lch(29.93, 57.63, 296.45°) |
| OKLab | oklab(40.6% 0.0038 -0.1487) |
| OKLCH | oklch(40.6% 0.149 271.5) |
| XYZ | xyz(8.5066, 6.2080, 30.4496) |
| Luminance | 0.0621 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.35
Blueberry
#464196
ΔE00 3.76
Darkslateblue
#483D8B
ΔE00 5.15
Cobalt
#0047AB
ΔE00 5.58
Cobalt (survey)
#1E488F
ΔE00 5.92
Blue Blue
#2242C7
ΔE00 6.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3D98 #988A2F
analogous
#2F7298 #2F3D98 #562F98
triadic
#2F3D98 #982F3D #3D982F
tetradic
#2F3D98 #982F72 #988A2F #2F9856
square
#2F3D98 #982F72 #988A2F #2F9856
split-complementary
#2F3D98 #98562F #72982F
monochromatic
#12173B #212A69 #2F3D98 #4052C4 #6F7CD2
Accessibility & contrast
On white
9.37
#2F3D98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#2F3D98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3D98
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3D98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3D98 | 1.00 | 9.37 | 2.24 | 9.37 |
| #FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004296
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2f3d98; /* rgb */ color: rgb(47, 61, 152); /* oklch */ color: oklch(40.6% 0.149 271.5);
Tailwind
colors: {
custom: {
50: '#7572b7',
500: '#2f3d98',
950: '#000000',
},
}SCSS
$custom: #2f3d98; $custom-light: #7572b7; $custom-dark: #000000;
JSON
{
"hex": "#2f3d98",
"rgb": {
"r": 47,
"g": 61,
"b": 152
},
"hsl": {
"h": 232,
"s": 52.764,
"l": 39.02
},
"oklch": {
"l": 0.40598,
"c": 0.14872,
"h": 271.5
},
"luminance": 0.06209
}Semantic roles & 50–950 ramp
primary
#2F3D98
secondary
#BAAF69
accent
#C94CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80