#2938AF#2938AF
#2938AF is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.187 H 270.0°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).
Color values
| HEX | #2938AF |
|---|---|
| RGB | rgb(41, 56, 175) |
| HSL | hsl(233, 62%, 42%) |
| HSV | hsv(233, 77%, 69%) |
| CMYK | cmyk(76.6%, 68%, 0%, 31.4%) |
| CIE-LAB | lab(30.39, 36.61, -64.75) |
| CIE-LCH | lch(30.39, 74.38, 299.48°) |
| OKLab | oklab(41.47% 0 -0.1874) |
| OKLCH | oklch(41.47% 0.187 270) |
| XYZ | xyz(10.0638, 6.3938, 41.2529) |
| Luminance | 0.0640 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.03
Blue Blue
#2242C7
ΔE00 4.17
Ocean Blue
#4F42B5
ΔE00 5.24
Blueberry
#464196
ΔE00 5.80
Blue With A Hint Of Purple
#533CC6
ΔE00 6.31
Cobalt
#0047AB
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2938AF #AFA029
analogous
#297BAF #2938AF #5D29AF
triadic
#2938AF #AF2938 #38AF29
tetradic
#2938AF #AF297B #AFA029 #29AF5D
square
#2938AF #AF297B #AFA029 #29AF5D
split-complementary
#2938AF #AF5D29 #7BAF29
monochromatic
#12184C #1D287D #2938AF #4253D3 #7480DE
Accessibility & contrast
On white
9.21
#2938AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#2938AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2938AF
9.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2938AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2938AF | 1.00 | 9.21 | 2.28 | 9.21 |
| #FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #2938af; /* rgb */ color: rgb(41, 56, 175); /* oklch */ color: oklch(41.5% 0.187 270.0);
Tailwind
colors: {
custom: {
50: '#796fc8',
500: '#2938af',
950: '#000000',
},
}SCSS
$custom: #2938af; $custom-light: #796fc8; $custom-dark: #000000;
JSON
{
"hex": "#2938af",
"rgb": {
"r": 41,
"g": 56,
"b": 175
},
"hsl": {
"h": 233.284,
"s": 62.037,
"l": 42.353
},
"oklch": {
"l": 0.41467,
"c": 0.18738,
"h": 270
},
"luminance": 0.06395
}Semantic roles & 50–950 ramp
primary
#2938AF
secondary
#C6BC6E
accent
#D343E5
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82