#2D129F#2D129F
#2D129F is a dark, highly saturated violet. Relative luminance 0.035; OKLCH L 35.0% C 0.201 H 277.0°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2D129F |
|---|---|
| RGB | rgb(45, 18, 159) |
| HSL | hsl(251, 80%, 35%) |
| HSV | hsv(251, 89%, 62%) |
| CMYK | cmyk(71.7%, 88.7%, 0%, 37.6%) |
| CIE-LAB | lab(21.92, 51.53, -69.06) |
| CIE-LCH | lch(21.92, 86.17, 306.73°) |
| OKLab | oklab(35.05% 0.0244 -0.1994) |
| OKLCH | oklch(35.05% 0.201 277) |
| XYZ | xyz(7.5545, 3.4930, 33.0703) |
| Luminance | 0.0349 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.48
Ultramarine
#2000B1
ΔE00 2.69
Royal Blue (survey)
#0504AA
ΔE00 2.71
Indigo Blue
#3A18B1
ΔE00 3.10
Royal
#0C1793
ΔE00 3.21
Darkblue
#00008B
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D129F #849F12
analogous
#123E9F #2D129F #73129F
triadic
#2D129F #9F2D12 #129F2D
tetradic
#2D129F #9F123E #849F12 #129F73
square
#2D129F #9F123E #849F12 #129F73
split-complementary
#2D129F #9F7312 #3E9F12
monochromatic
#0E0631 #1D0C68 #2D129F #3D18D6 #6242EA
Accessibility & contrast
On white
12.36
#2D129F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#2D129F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D129F
12.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D129F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D129F | 1.00 | 12.36 | 1.70 | 12.36 |
| #FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002E9D
Tritanopia (blue-blind)
#00425D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2d129f; /* rgb */ color: rgb(45, 18, 159); /* oklch */ color: oklch(35.0% 0.201 277.0);
Tailwind
colors: {
custom: {
50: '#7958bd',
500: '#2d129f',
950: '#000000',
},
}SCSS
$custom: #2d129f; $custom-light: #7958bd; $custom-dark: #000000;
JSON
{
"hex": "#2d129f",
"rgb": {
"r": 45,
"g": 18,
"b": 159
},
"hsl": {
"h": 251.489,
"s": 79.661,
"l": 34.706
},
"oklch": {
"l": 0.3505,
"c": 0.20094,
"h": 277
},
"luminance": 0.03494
}Semantic roles & 50–950 ramp
primary
#2D129F
secondary
#B0CA43
accent
#F632D0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981