#2D317F#2D317F
#2D317F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.129 H 275.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2D317F |
|---|---|
| RGB | rgb(45, 49, 127) |
| HSL | hsl(237, 48%, 34%) |
| HSV | hsv(237, 65%, 50%) |
| CMYK | cmyk(64.6%, 61.4%, 0%, 50.2%) |
| CIE-LAB | lab(24.60, 24.21, -44.79) |
| CIE-LCH | lch(24.60, 50.92, 298.39°) |
| OKLab | oklab(35.97% 0.0125 -0.1288) |
| OKLCH | oklch(35.97% 0.129 275.5) |
| XYZ | xyz(6.0100, 4.2863, 20.5852) |
| Luminance | 0.0429 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.27
Blueberry
#464196
ΔE00 6.05
Midnight Blue
#191970
ΔE00 6.76
Sapphire (survey)
#2138AB
ΔE00 6.80
Marine
#042E60
ΔE00 7.76
Royal
#0C1793
ΔE00 7.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D317F #7F7B2D
analogous
#2D5A7F #2D317F #522D7F
triadic
#2D317F #7F2D31 #317F2D
tetradic
#2D317F #7F2D5A #7F7B2D #2D7F52
square
#2D317F #7F2D5A #7F7B2D #2D7F52
split-complementary
#2D317F #7F522D #5A7F2D
monochromatic
#0D0E25 #1D2052 #2D317F #3D42AC #6065C7
Accessibility & contrast
On white
11.31
#2D317F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#2D317F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D317F
11.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D317F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D317F | 1.00 | 11.31 | 1.86 | 11.31 |
| #FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2d317f; /* rgb */ color: rgb(45, 49, 127); /* oklch */ color: oklch(36.0% 0.129 275.5);
Tailwind
colors: {
custom: {
50: '#7069a5',
500: '#2d317f',
950: '#000000',
},
}SCSS
$custom: #2d317f; $custom-light: #7069a5; $custom-dark: #000000;
JSON
{
"hex": "#2d317f",
"rgb": {
"r": 45,
"g": 49,
"b": 127
},
"hsl": {
"h": 237.073,
"s": 47.674,
"l": 33.725
},
"oklch": {
"l": 0.35967,
"c": 0.12945,
"h": 275.5
},
"luminance": 0.04287
}Semantic roles & 50–950 ramp
primary
#2D317F
secondary
#ADA95B
accent
#D151D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F