#2254C2#2254C2
#2254C2 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.2% C 0.181 H 263.0°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).
Color values
| HEX | #2254C2 |
|---|---|
| RGB | rgb(34, 84, 194) |
| HSL | hsl(221, 70%, 45%) |
| HSV | hsv(221, 82%, 76%) |
| CMYK | cmyk(82.5%, 56.7%, 0%, 23.9%) |
| CIE-LAB | lab(38.85, 24.85, -62.11) |
| CIE-LCH | lch(38.85, 66.90, 291.81°) |
| OKLab | oklab(48.17% -0.0221 -0.1794) |
| OKLCH | oklch(48.17% 0.181 263) |
| XYZ | xyz(13.5641, 10.5741, 52.3546) |
| Luminance | 0.1058 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.84
Denim
#1560BD
ΔE00 5.06
Cobalt
#0047AB
ΔE00 5.10
Azul
#1D5DEC
ΔE00 5.98
Blue Blue
#2242C7
ΔE00 6.00
Warm Blue
#4B57DB
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2254C2 #C29022
analogous
#22A4C2 #2254C2 #4022C2
triadic
#2254C2 #C22254 #54C222
tetradic
#2254C2 #C222A4 #C29022 #22C240
square
#2254C2 #C222A4 #C29022 #22C240
split-complementary
#2254C2 #C24022 #A4C222
monochromatic
#10275A #193D8E #2254C2 #4374DE #779AE7
Accessibility & contrast
On white
6.74
#2254C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#2254C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2254C2
6.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2254C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2254C2 | 1.00 | 6.74 | 3.12 | 6.74 |
| #FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#007083
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2254c2; /* rgb */ color: rgb(34, 84, 194); /* oklch */ color: oklch(48.2% 0.181 263.0);
Tailwind
colors: {
custom: {
50: '#7983d5',
500: '#2254c2',
950: '#000000',
},
}SCSS
$custom: #2254c2; $custom-light: #7983d5; $custom-dark: #000000;
JSON
{
"hex": "#2254c2",
"rgb": {
"r": 34,
"g": 84,
"b": 194
},
"hsl": {
"h": 221.25,
"s": 70.175,
"l": 44.706
},
"oklch": {
"l": 0.48174,
"c": 0.1808,
"h": 263
},
"luminance": 0.10576
}Semantic roles & 50–950 ramp
primary
#2254C2
secondary
#CFB171
accent
#B53BED
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83