#2242AF#2242AF
#2242AF is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.177 H 266.2°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).
Color values
| HEX | #2242AF |
|---|---|
| RGB | rgb(34, 66, 175) |
| HSL | hsl(226, 67%, 41%) |
| HSV | hsv(226, 81%, 69%) |
| CMYK | cmyk(80.6%, 62.3%, 0%, 31.4%) |
| CIE-LAB | lab(32.55, 29.45, -61.21) |
| CIE-LCH | lch(32.55, 67.93, 295.70°) |
| OKLab | oklab(42.97% -0.0119 -0.1771) |
| OKLCH | oklch(42.97% 0.177 266.2) |
| XYZ | xyz(10.3430, 7.3304, 41.4189) |
| Luminance | 0.0733 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.08
Cobalt
#0047AB
ΔE00 3.29
Blue Blue
#2242C7
ΔE00 3.34
Sapphire
#0F52BA
ΔE00 5.81
Cobalt (survey)
#1E488F
ΔE00 5.87
Ocean Blue
#4F42B5
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2242AF #AF8F22
analogous
#2288AF #2242AF #4822AF
triadic
#2242AF #AF2242 #42AF22
tetradic
#2242AF #AF2288 #AF8F22 #22AF48
square
#2242AF #AF2288 #AF8F22 #22AF48
split-complementary
#2242AF #AF4822 #88AF22
monochromatic
#0E1B49 #182F7C #2242AF #365BD8 #6985E2
Accessibility & contrast
On white
8.51
#2242AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2242AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2242AF
8.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2242AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2242AF | 1.00 | 8.51 | 2.47 | 8.51 |
| #FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005E72
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2242af; /* rgb */ color: rgb(34, 66, 175); /* oklch */ color: oklch(43.0% 0.177 266.2);
Tailwind
colors: {
custom: {
50: '#7676c8',
500: '#2242af',
950: '#000000',
},
}SCSS
$custom: #2242af; $custom-light: #7676c8; $custom-dark: #000000;
JSON
{
"hex": "#2242af",
"rgb": {
"r": 34,
"g": 66,
"b": 175
},
"hsl": {
"h": 226.383,
"s": 67.464,
"l": 40.98
},
"oklch": {
"l": 0.42972,
"c": 0.17749,
"h": 266.2
},
"luminance": 0.07332
}Semantic roles & 50–950 ramp
primary
#2242AF
secondary
#C8B165
accent
#C33DEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82