#2F286C#2F286C
#2F286C is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.8% C 0.114 H 282.8°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).
Color values
| HEX | #2F286C |
|---|---|
| RGB | rgb(47, 40, 108) |
| HSL | hsl(246, 46%, 29%) |
| HSV | hsv(246, 63%, 42%) |
| CMYK | cmyk(56.5%, 63%, 0%, 57.6%) |
| CIE-LAB | lab(20.84, 23.89, -38.75) |
| CIE-LCH | lch(20.84, 45.52, 301.65°) |
| OKLab | oklab(32.75% 0.0252 -0.1111) |
| OKLCH | oklch(32.75% 0.114 282.8) |
| XYZ | xyz(4.6370, 3.2044, 14.5586) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.12
Darkslateblue
#483D8B
ΔE00 7.47
Dark Indigo
#1F0954
ΔE00 8.12
Marine
#042E60
ΔE00 8.62
Royal
#0C1793
ΔE00 8.68
Navy Blue
#1B2A4A
ΔE00 8.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F286C #656C28
analogous
#28436C #2F286C #51286C
triadic
#2F286C #6C2F28 #286C2F
tetradic
#2F286C #6C2843 #656C28 #286C51
square
#2F286C #6C2843 #656C28 #286C51
split-complementary
#2F286C #6C5128 #436C28
monochromatic
#0A0816 #1C173F #2F286C #423999 #5B50BE
Accessibility & contrast
On white
12.80
#2F286C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2F286C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F286C
12.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F286C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F286C | 1.00 | 12.80 | 1.64 | 12.80 |
| #FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#00306B
Tritanopia (blue-blind)
#153846
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2f286c; /* rgb */ color: rgb(47, 40, 108); /* oklch */ color: oklch(32.8% 0.114 282.8);
Tailwind
colors: {
custom: {
50: '#6e6297',
500: '#2f286c',
950: '#000000',
},
}SCSS
$custom: #2f286c; $custom-light: #6e6297; $custom-dark: #000000;
JSON
{
"hex": "#2f286c",
"rgb": {
"r": 47,
"g": 40,
"b": 108
},
"hsl": {
"h": 246.176,
"s": 45.946,
"l": 29.02
},
"oklch": {
"l": 0.3275,
"c": 0.11389,
"h": 282.8
},
"luminance": 0.03205
}Semantic roles & 50–950 ramp
primary
#2F286C
secondary
#979E51
accent
#D652C8
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050D
muted
#7B797E