#2254E3#2254E3

#2254E3 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.0% C 0.223 H 264.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#2254E3
RGBrgb(34, 84, 227)
HSLhsl(224, 78%, 51%)
HSVhsv(224, 85%, 89%)
CMYKcmyk(85%, 63%, 0%, 11%)
CIE-LABlab(41.57, 37.32, -76.65)
CIE-LCHlch(41.57, 85.25, 295.96°)
OKLaboklab(51.04% -0.0211 -0.2221)
OKLCHoklch(51.04% 0.223 264.6)
XYZxyz(17.6902, 12.2246, 74.0853)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254E3 #E3B122
analogous
#22B4E3 #2254E3 #5022E3
triadic
#2254E3 #E32254 #54E322
tetradic
#2254E3 #E322B4 #E3B122 #22E350
square
#2254E3 #E322B4 #E3B122 #22E350
split-complementary
#2254E3 #E35022 #B4E322
monochromatic
#102B7B #163FB1 #2254E3 #587EEA #8FA8F1

Accessibility & contrast

On white

6.10
#2254E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2254E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2254E3
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2254E3#FFFFFF#000000##FFFFFF
##2254E31.006.103.456.10
#FFFFFF6.101.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE8
Deuteranopia (green-blind)
#0059E0
Tritanopia (blue-blind)
#007A94
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2254e3;
/* rgb */ color: rgb(34, 84, 227);
/* oklch */ color: oklch(51.0% 0.223 264.6);
Tailwind
colors: {
  custom: {
    50: '#8183ed',
    500: '#2254e3',
    950: '#000000',
  },
}
SCSS
$custom: #2254e3;
$custom-light: #8183ed;
$custom-dark: #000000;
JSON
{
  "hex": "#2254e3",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 227
  },
  "hsl": {
    "h": 224.456,
    "s": 77.51,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51043,
    "c": 0.22306,
    "h": 264.6
  },
  "luminance": 0.12227
}

Semantic roles & 50–950 ramp

primary
#2254E3
secondary
#DBC586
accent
#C234F4
background
#F8F8FE
surface
#F0EFFD
border
#CBCAD5
text
#0D0A16
muted
#7D7C84

Preview Lab

Preview with #2254E3

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#2254E3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva