#2F2FAF#2F2FAF
#2F2FAF is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.4% C 0.196 H 273.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2F2FAF |
|---|---|
| RGB | rgb(47, 47, 175) |
| HSL | hsl(240, 58%, 44%) |
| HSV | hsv(240, 73%, 69%) |
| CMYK | cmyk(73.1%, 73.1%, 0%, 31.4%) |
| CIE-LAB | lab(28.72, 42.67, -67.47) |
| CIE-LCH | lch(28.72, 79.83, 302.31°) |
| OKLab | oklab(40.36% 0.0113 -0.1952) |
| OKLCH | oklch(40.36% 0.196 273.3) |
| XYZ | xyz(9.9241, 5.7315, 41.1324) |
| Luminance | 0.0573 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.26
Indigo Blue
#3A18B1
ΔE00 4.74
Ocean Blue
#4F42B5
ΔE00 6.02
True Blue
#010FCC
ΔE00 6.04
Blue Blue
#2242C7
ΔE00 6.13
Blue With A Hint Of Purple
#533CC6
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F2FAF #AFAF2F
analogous
#2F6FAF #2F2FAF #6F2FAF
triadic
#2F2FAF #AF2F2F #2FAF2F
tetradic
#2F2FAF #AF2F6F #AFAF2F #2FAF6F
square
#2F2FAF #AF2F6F #AFAF2F #2FAF6F
split-complementary
#2F2FAF #AF6F2F #6FAF2F
monochromatic
#15154F #22227F #2F2FAF #4C4CCF #7C7CDC
Accessibility & contrast
On white
9.78
#2F2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#2F2FAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F2FAF
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F2FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F2FAF | 1.00 | 9.78 | 2.15 | 9.78 |
| #FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #2f2faf; /* rgb */ color: rgb(47, 47, 175); /* oklch */ color: oklch(40.4% 0.196 273.3);
Tailwind
colors: {
custom: {
50: '#7c69c8',
500: '#2f2faf',
950: '#000000',
},
}SCSS
$custom: #2f2faf; $custom-light: #7c69c8; $custom-dark: #000000;
JSON
{
"hex": "#2f2faf",
"rgb": {
"r": 47,
"g": 47,
"b": 175
},
"hsl": {
"h": 240,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.40361,
"c": 0.1955,
"h": 273.3
},
"luminance": 0.05733
}Semantic roles & 50–950 ramp
primary
#2F2FAF
secondary
#C4C475
accent
#E147E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82