#2340B0#2340B0
#2340B0 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.181 H 266.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2340B0 |
|---|---|
| RGB | rgb(35, 64, 176) |
| HSL | hsl(228, 67%, 41%) |
| HSV | hsv(228, 80%, 69%) |
| CMYK | cmyk(80.1%, 63.6%, 0%, 31%) |
| CIE-LAB | lab(32.16, 31.25, -62.43) |
| CIE-LCH | lch(32.16, 69.82, 296.59°) |
| OKLab | oklab(42.73% -0.0099 -0.1807) |
| OKLCH | oklch(42.73% 0.181 266.8) |
| XYZ | xyz(10.3603, 7.1575, 41.9014) |
| Luminance | 0.0716 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.43
Blue Blue
#2242C7
ΔE00 3.13
Cobalt
#0047AB
ΔE00 3.96
Ocean Blue
#4F42B5
ΔE00 5.66
Blueberry
#464196
ΔE00 5.93
Blue (survey)
#0343DF
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2340B0 #B09323
analogous
#2387B0 #2340B0 #4D23B0
triadic
#2340B0 #B02340 #40B023
tetradic
#2340B0 #B02387 #B09323 #23B04D
square
#2340B0 #B02387 #B09323 #23B04D
split-complementary
#2340B0 #B04D23 #87B023
monochromatic
#0F1B4A #192D7D #2340B0 #3959D8 #6C84E2
Accessibility & contrast
On white
8.64
#2340B0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#2340B0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2340B0
8.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2340B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2340B0 | 1.00 | 8.64 | 2.43 | 8.64 |
| #FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2340b0; /* rgb */ color: rgb(35, 64, 176); /* oklch */ color: oklch(42.7% 0.181 266.8);
Tailwind
colors: {
custom: {
50: '#7674c9',
500: '#2340b0',
950: '#000000',
},
}SCSS
$custom: #2340b0; $custom-light: #7674c9; $custom-dark: #000000;
JSON
{
"hex": "#2340b0",
"rgb": {
"r": 35,
"g": 64,
"b": 176
},
"hsl": {
"h": 227.66,
"s": 66.825,
"l": 41.373
},
"oklch": {
"l": 0.42725,
"c": 0.18095,
"h": 266.8
},
"luminance": 0.07159
}Semantic roles & 50–950 ramp
primary
#2340B0
secondary
#C8B467
accent
#C63EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82