#2F319C#2F319C
#2F319C is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.169 H 274.4°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2F319C |
|---|---|
| RGB | rgb(47, 49, 156) |
| HSL | hsl(239, 54%, 40%) |
| HSV | hsv(239, 70%, 61%) |
| CMYK | cmyk(69.9%, 68.6%, 0%, 38.8%) |
| CIE-LAB | lab(27.30, 34.92, -58.34) |
| CIE-LCH | lch(27.30, 67.99, 300.91°) |
| OKLab | oklab(38.77% 0.0129 -0.1685) |
| OKLCH | oklch(38.77% 0.169 274.4) |
| XYZ | xyz(8.2694, 5.2005, 32.0140) |
| Luminance | 0.0520 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.19
Blueberry
#464196
ΔE00 5.45
Darkslateblue
#483D8B
ΔE00 5.96
Indigo Blue
#3A18B1
ΔE00 6.33
Royal
#0C1793
ΔE00 6.51
Ocean Blue
#4F42B5
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F319C #9C9A2F
analogous
#2F689C #2F319C #642F9C
triadic
#2F319C #9C2F31 #319C2F
tetradic
#2F319C #9C2F68 #9C9A2F #2F9C64
square
#2F319C #9C2F68 #9C9A2F #2F9C64
split-complementary
#2F319C #9C642F #689C2F
monochromatic
#13133E #21226D #2F319C #4245C6 #7173D4
Accessibility & contrast
On white
10.29
#2F319C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.04
#2F319C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F319C
10.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F319C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F319C | 1.00 | 10.29 | 2.04 | 10.29 |
| #FFFFFF | 10.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.04 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #2f319c; /* rgb */ color: rgb(47, 49, 156); /* oklch */ color: oklch(38.8% 0.169 274.4);
Tailwind
colors: {
custom: {
50: '#776aba',
500: '#2f319c',
950: '#000000',
},
}SCSS
$custom: #2f319c; $custom-light: #776aba; $custom-dark: #000000;
JSON
{
"hex": "#2f319c",
"rgb": {
"r": 47,
"g": 49,
"b": 156
},
"hsl": {
"h": 238.899,
"s": 53.695,
"l": 39.804
},
"oklch": {
"l": 0.38773,
"c": 0.16902,
"h": 274.4
},
"luminance": 0.05201
}Semantic roles & 50–950 ramp
primary
#2F319C
secondary
#BCBA6B
accent
#DA4BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81