#2340A0#2340A0
#2340A0 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.159 H 266.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2340A0 |
|---|---|
| RGB | rgb(35, 64, 160) |
| HSL | hsl(226, 64%, 38%) |
| HSV | hsv(226, 78%, 63%) |
| CMYK | cmyk(78.1%, 60%, 0%, 37.3%) |
| CIE-LAB | lab(30.79, 25.12, -55.09) |
| CIE-LCH | lch(30.79, 60.55, 294.52°) |
| OKLab | oklab(41.28% -0.01 -0.1591) |
| OKLCH | oklch(41.28% 0.159 266.4) |
| XYZ | xyz(8.8695, 6.5612, 34.0499) |
| Luminance | 0.0656 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.28
Cobalt
#0047AB
ΔE00 3.50
Cobalt (survey)
#1E488F
ΔE00 4.68
Blueberry
#464196
ΔE00 5.37
Blue Blue
#2242C7
ΔE00 5.42
Darkish Blue
#014182
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2340A0 #A08323
analogous
#237EA0 #2340A0 #4423A0
triadic
#2340A0 #A02340 #40A023
tetradic
#2340A0 #A0237E #A08323 #23A044
square
#2340A0 #A0237E #A08323 #23A044
split-complementary
#2340A0 #A04423 #7EA023
monochromatic
#0D183C #182C6E #2340A0 #2F54D1 #617EDC
Accessibility & contrast
On white
9.08
#2340A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.31
#2340A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2340A0
9.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2340A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2340A0 | 1.00 | 9.08 | 2.31 | 9.08 |
| #FFFFFF | 9.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #2340a0; /* rgb */ color: rgb(35, 64, 160); /* oklch */ color: oklch(41.3% 0.159 266.4);
Tailwind
colors: {
custom: {
50: '#7274bd',
500: '#2340a0',
950: '#000000',
},
}SCSS
$custom: #2340a0; $custom-light: #7274bd; $custom-dark: #000000;
JSON
{
"hex": "#2340a0",
"rgb": {
"r": 35,
"g": 64,
"b": 160
},
"hsl": {
"h": 226.08,
"s": 64.103,
"l": 38.235
},
"oklch": {
"l": 0.41277,
"c": 0.15945,
"h": 266.4
},
"luminance": 0.06562
}Semantic roles & 50–950 ramp
primary
#2340A0
secondary
#C1AA5D
accent
#C041E7
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81