#3040AF#3040AF
#3040AF is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.176 H 270.7°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).
Color values
| HEX | #3040AF |
|---|---|
| RGB | rgb(48, 64, 175) |
| HSL | hsl(232, 57%, 44%) |
| HSV | hsv(232, 73%, 69%) |
| CMYK | cmyk(72.6%, 63.4%, 0%, 31.4%) |
| CIE-LAB | lab(32.68, 32.27, -60.97) |
| CIE-LCH | lch(32.68, 68.99, 297.89°) |
| OKLab | oklab(43.24% 0.0021 -0.1761) |
| OKLCH | oklch(43.24% 0.176 270.7) |
| XYZ | xyz(10.7875, 7.3892, 41.4069) |
| Luminance | 0.0739 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.49
Blue Blue
#2242C7
ΔE00 3.20
Ocean Blue
#4F42B5
ΔE00 4.44
Blueberry
#464196
ΔE00 5.00
Cobalt
#0047AB
ΔE00 5.01
Blue (survey)
#0343DF
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3040AF #AF9F30
analogous
#307FAF #3040AF #5F30AF
triadic
#3040AF #AF3040 #40AF30
tetradic
#3040AF #AF307F #AF9F30 #30AF5F
square
#3040AF #AF307F #AF9F30 #30AF5F
split-complementary
#3040AF #AF5F30 #7FAF30
monochromatic
#161D4F #232E7F #3040AF #4E5ECE #7E8ADC
Accessibility & contrast
On white
8.47
#3040AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#3040AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3040AF
8.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3040AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3040AF | 1.00 | 8.47 | 2.48 | 8.47 |
| #FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #3040af; /* rgb */ color: rgb(48, 64, 175); /* oklch */ color: oklch(43.2% 0.176 270.7);
Tailwind
colors: {
custom: {
50: '#7a74c8',
500: '#3040af',
950: '#000000',
},
}SCSS
$custom: #3040af; $custom-light: #7a74c8; $custom-dark: #000000;
JSON
{
"hex": "#3040af",
"rgb": {
"r": 48,
"g": 64,
"b": 175
},
"hsl": {
"h": 232.441,
"s": 56.951,
"l": 43.725
},
"oklch": {
"l": 0.43242,
"c": 0.17615,
"h": 270.7
},
"luminance": 0.0739
}Semantic roles & 50–950 ramp
primary
#3040AF
secondary
#C4BB76
accent
#CD48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82