#2340AF#2340AF
#2340AF is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.6% C 0.180 H 266.8°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2340AF |
|---|---|
| RGB | rgb(35, 64, 175) |
| HSL | hsl(228, 67%, 41%) |
| HSV | hsv(228, 80%, 69%) |
| CMYK | cmyk(80%, 63.4%, 0%, 31.4%) |
| CIE-LAB | lab(32.07, 30.87, -61.98) |
| CIE-LCH | lch(32.07, 69.24, 296.47°) |
| OKLab | oklab(42.63% -0.0099 -0.1794) |
| OKLCH | oklch(42.63% 0.18 266.8) |
| XYZ | xyz(10.2617, 7.1181, 41.3822) |
| Luminance | 0.0712 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.42
Blue Blue
#2242C7
ΔE00 3.27
Cobalt
#0047AB
ΔE00 3.89
Ocean Blue
#4F42B5
ΔE00 5.72
Blueberry
#464196
ΔE00 5.87
Blue (survey)
#0343DF
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2340AF #AF9223
analogous
#2386AF #2340AF #4C23AF
triadic
#2340AF #AF2340 #40AF23
tetradic
#2340AF #AF2386 #AF9223 #23AF4C
square
#2340AF #AF2386 #AF9223 #23AF4C
split-complementary
#2340AF #AF4C23 #86AF23
monochromatic
#0F1B49 #192D7C #2340AF #3859D7 #6B84E1
Accessibility & contrast
On white
8.66
#2340AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.42
#2340AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2340AF
8.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2340AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2340AF | 1.00 | 8.66 | 2.42 | 8.66 |
| #FFFFFF | 8.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2340af; /* rgb */ color: rgb(35, 64, 175); /* oklch */ color: oklch(42.6% 0.180 266.8);
Tailwind
colors: {
custom: {
50: '#7674c8',
500: '#2340af',
950: '#000000',
},
}SCSS
$custom: #2340af; $custom-light: #7674c8; $custom-dark: #000000;
JSON
{
"hex": "#2340af",
"rgb": {
"r": 35,
"g": 64,
"b": 175
},
"hsl": {
"h": 227.571,
"s": 66.667,
"l": 41.176
},
"oklch": {
"l": 0.42632,
"c": 0.17963,
"h": 266.8
},
"luminance": 0.07119
}Semantic roles & 50–950 ramp
primary
#2340AF
secondary
#C7B366
accent
#C63EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82