#2254CA#2254CA

#2254CA is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.8% C 0.191 H 263.5°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#2254CA
RGBrgb(34, 84, 202)
HSLhsl(222, 71%, 46%)
HSVhsv(222, 83%, 79%)
CMYKcmyk(83.2%, 58.4%, 0%, 20.8%)
CIE-LABlab(39.48, 27.93, -65.73)
CIE-LCHlch(39.48, 71.41, 293.02°)
OKLaboklab(48.85% -0.0216 -0.1901)
OKLCHoklch(48.85% 0.191 263.5)
XYZxyz(14.4869, 10.9432, 57.2144)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2254CA #CA9822
analogous
#22A8CA #2254CA #4422CA
triadic
#2254CA #CA2254 #54CA22
tetradic
#2254CA #CA22A8 #CA9822 #22CA44
square
#2254CA #CA22A8 #CA9822 #22CA44
split-complementary
#2254CA #CA4422 #A8CA22
monochromatic
#102861 #193E96 #2254CA #4976E0 #7D9DE9

Accessibility & contrast

On white

6.59
#2254CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2254CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2254CA
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2254CA#FFFFFF#000000##FFFFFF
##2254CA1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0056C8
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2254ca;
/* rgb */ color: rgb(34, 84, 202);
/* oklch */ color: oklch(48.8% 0.191 263.5);
Tailwind
colors: {
  custom: {
    50: '#7b83db',
    500: '#2254ca',
    950: '#000000',
  },
}
SCSS
$custom: #2254ca;
$custom-light: #7b83db;
$custom-dark: #000000;
JSON
{
  "hex": "#2254ca",
  "rgb": {
    "r": 34,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 222.143,
    "s": 71.186,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48846,
    "c": 0.1913,
    "h": 263.5
  },
  "luminance": 0.10945
}

Semantic roles & 50–950 ramp

primary
#2254CA
secondary
#D1B677
accent
#B83AEE
background
#F8F8FD
surface
#EFEFFB
border
#CACAD4
text
#0B0A15
muted
#7C7C83

Preview Lab

Preview with #2254CA

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

Preview Lab → · Contrast checker → · Palette generator →

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