#2342B2#2342B2
#2342B2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.181 H 266.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2342B2 |
|---|---|
| RGB | rgb(35, 66, 178) |
| HSL | hsl(227, 67%, 42%) |
| HSV | hsv(227, 80%, 70%) |
| CMYK | cmyk(80.3%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(32.85, 30.69, -62.50) |
| CIE-LCH | lch(32.85, 69.63, 296.15°) |
| OKLab | oklab(43.29% -0.0111 -0.1809) |
| OKLCH | oklch(43.29% 0.181 266.5) |
| XYZ | xyz(10.6744, 7.4669, 42.9895) |
| Luminance | 0.0747 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.88
Sapphire (survey)
#2138AB
ΔE00 3.07
Cobalt
#0047AB
ΔE00 3.58
Blue (survey)
#0343DF
ΔE00 5.62
Ocean Blue
#4F42B5
ΔE00 5.72
Sapphire
#0F52BA
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2342B2 #B29323
analogous
#238AB2 #2342B2 #4C23B2
triadic
#2342B2 #B22342 #42B223
tetradic
#2342B2 #B2238A #B29323 #23B24C
square
#2342B2 #B2238A #B29323 #23B24C
split-complementary
#2342B2 #B24C23 #8AB223
monochromatic
#0F1C4C #192F7F #2342B2 #3A5CD8 #6D87E2
Accessibility & contrast
On white
8.42
#2342B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#2342B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2342B2
8.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2342B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2342B2 | 1.00 | 8.42 | 2.49 | 8.42 |
| #FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2342b2; /* rgb */ color: rgb(35, 66, 178); /* oklch */ color: oklch(43.3% 0.181 266.5);
Tailwind
colors: {
custom: {
50: '#7776ca',
500: '#2342b2',
950: '#000000',
},
}SCSS
$custom: #2342b2; $custom-light: #7776ca; $custom-dark: #000000;
JSON
{
"hex": "#2342b2",
"rgb": {
"r": 35,
"g": 66,
"b": 178
},
"hsl": {
"h": 226.993,
"s": 67.136,
"l": 41.765
},
"oklch": {
"l": 0.43285,
"c": 0.1812,
"h": 266.5
},
"luminance": 0.07468
}Semantic roles & 50–950 ramp
primary
#2342B2
secondary
#C9B468
accent
#C53EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82