#2340B2#2340B2
#2340B2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.184 H 266.9°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2340B2 |
|---|---|
| RGB | rgb(35, 64, 178) |
| HSL | hsl(228, 67%, 42%) |
| HSV | hsv(228, 80%, 70%) |
| CMYK | cmyk(80.3%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(32.34, 32.00, -63.33) |
| CIE-LCH | lch(32.34, 70.96, 296.81°) |
| OKLab | oklab(42.91% -0.01 -0.1833) |
| OKLCH | oklch(42.91% 0.184 266.9) |
| XYZ | xyz(10.5596, 7.2372, 42.9512) |
| Luminance | 0.0724 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.47
Blue Blue
#2242C7
ΔE00 2.86
Cobalt
#0047AB
ΔE00 4.09
Ocean Blue
#4F42B5
ΔE00 5.54
Blue (survey)
#0343DF
ΔE00 5.66
Blueberry
#464196
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2340B2 #B29523
analogous
#2388B2 #2340B2 #4E23B2
triadic
#2340B2 #B22340 #40B223
tetradic
#2340B2 #B22388 #B29523 #23B24E
square
#2340B2 #B22388 #B29523 #23B24E
split-complementary
#2340B2 #B24E23 #88B223
monochromatic
#0F1B4C #192E7F #2340B2 #3A5AD8 #6D85E2
Accessibility & contrast
On white
8.58
#2340B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#2340B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2340B2
8.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2340B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2340B2 | 1.00 | 8.58 | 2.45 | 8.58 |
| #FFFFFF | 8.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2340b2; /* rgb */ color: rgb(35, 64, 178); /* oklch */ color: oklch(42.9% 0.184 266.9);
Tailwind
colors: {
custom: {
50: '#7774ca',
500: '#2340b2',
950: '#000000',
},
}SCSS
$custom: #2340b2; $custom-light: #7774ca; $custom-dark: #000000;
JSON
{
"hex": "#2340b2",
"rgb": {
"r": 35,
"g": 64,
"b": 178
},
"hsl": {
"h": 227.832,
"s": 67.136,
"l": 41.765
},
"oklch": {
"l": 0.42911,
"c": 0.18358,
"h": 266.9
},
"luminance": 0.07238
}Semantic roles & 50–950 ramp
primary
#2340B2
secondary
#C9B568
accent
#C73EEA
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82