#2F338F#2F338F
#2F338F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.9% C 0.149 H 274.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2F338F |
|---|---|
| RGB | rgb(47, 51, 143) |
| HSL | hsl(238, 51%, 37%) |
| HSV | hsv(238, 67%, 56%) |
| CMYK | cmyk(67.1%, 64.3%, 0%, 43.9%) |
| CIE-LAB | lab(26.60, 29.01, -51.50) |
| CIE-LCH | lch(26.60, 59.11, 299.40°) |
| OKLab | oklab(37.91% 0.0125 -0.1485) |
| OKLCH | oklch(37.91% 0.149 274.8) |
| XYZ | xyz(7.3124, 4.9545, 26.5522) |
| Luminance | 0.0495 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.37
Blueberry
#464196
ΔE00 4.84
Darkslateblue
#483D8B
ΔE00 4.90
Royal
#0C1793
ΔE00 7.29
Ocean Blue
#4F42B5
ΔE00 7.81
Midnight Blue
#191970
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F338F #8F8B2F
analogous
#2F638F #2F338F #5B2F8F
triadic
#2F338F #8F2F33 #338F2F
tetradic
#2F338F #8F2F63 #8F8B2F #2F8F5B
square
#2F338F #8F2F63 #8F8B2F #2F8F5B
split-complementary
#2F338F #8F5B2F #638F2F
monochromatic
#111233 #202361 #2F338F #3E43BD #6A6ECE
Accessibility & contrast
On white
10.55
#2F338F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#2F338F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F338F
10.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F338F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F338F | 1.00 | 10.55 | 1.99 | 10.55 |
| #FFFFFF | 10.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004A5C
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2f338f; /* rgb */ color: rgb(47, 51, 143); /* oklch */ color: oklch(37.9% 0.149 274.8);
Tailwind
colors: {
custom: {
50: '#746bb1',
500: '#2f338f',
950: '#000000',
},
}SCSS
$custom: #2f338f; $custom-light: #746bb1; $custom-dark: #000000;
JSON
{
"hex": "#2f338f",
"rgb": {
"r": 47,
"g": 51,
"b": 143
},
"hsl": {
"h": 237.5,
"s": 50.526,
"l": 37.255
},
"oklch": {
"l": 0.37906,
"c": 0.14899,
"h": 274.8
},
"luminance": 0.04955
}Semantic roles & 50–950 ramp
primary
#2F338F
secondary
#B5B265
accent
#D44EDA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80