#2242B3#2242B3
#2242B3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.183 H 266.3°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2242B3 |
|---|---|
| RGB | rgb(34, 66, 179) |
| HSL | hsl(227, 68%, 42%) |
| HSV | hsv(227, 81%, 70%) |
| CMYK | cmyk(81%, 63.1%, 0%, 29.8%) |
| CIE-LAB | lab(32.90, 30.98, -63.02) |
| CIE-LCH | lch(32.90, 70.22, 296.18°) |
| OKLab | oklab(43.34% -0.0119 -0.1824) |
| OKLCH | oklch(43.34% 0.183 266.3) |
| XYZ | xyz(10.7417, 7.4899, 43.5186) |
| Luminance | 0.0749 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.77
Sapphire (survey)
#2138AB
ΔE00 3.11
Cobalt
#0047AB
ΔE00 3.59
Blue (survey)
#0343DF
ΔE00 5.50
Ocean Blue
#4F42B5
ΔE00 5.74
Sapphire
#0F52BA
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2242B3 #B39322
analogous
#228BB3 #2242B3 #4B22B3
triadic
#2242B3 #B32242 #42B322
tetradic
#2242B3 #B3228B #B39322 #22B34B
square
#2242B3 #B3228B #B39322 #22B34B
split-complementary
#2242B3 #B34B22 #8BB322
monochromatic
#0E1C4C #182F80 #2242B3 #395CD9 #6C87E3
Accessibility & contrast
On white
8.41
#2242B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#2242B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2242B3
8.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2242B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2242B3 | 1.00 | 8.41 | 2.50 | 8.41 |
| #FFFFFF | 8.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2242b3; /* rgb */ color: rgb(34, 66, 179); /* oklch */ color: oklch(43.3% 0.183 266.3);
Tailwind
colors: {
custom: {
50: '#7776cb',
500: '#2242b3',
950: '#000000',
},
}SCSS
$custom: #2242b3; $custom-light: #7776cb; $custom-dark: #000000;
JSON
{
"hex": "#2242b3",
"rgb": {
"r": 34,
"g": 66,
"b": 179
},
"hsl": {
"h": 226.759,
"s": 68.075,
"l": 41.765
},
"oklch": {
"l": 0.43338,
"c": 0.18277,
"h": 266.3
},
"luminance": 0.07491
}Semantic roles & 50–950 ramp
primary
#2242B3
secondary
#C9B468
accent
#C53DEB
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82