#22257C#22257C

#22257C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.144 H 273.6°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#22257C
RGBrgb(34, 37, 124)
HSLhsl(238, 57%, 31%)
HSVhsv(238, 73%, 49%)
CMYKcmyk(72.6%, 70.2%, 0%, 51.4%)
CIE-LABlab(20.51, 29.45, -49.60)
CIE-LCHlch(20.51, 57.69, 300.70°)
OKLaboklab(32.69% 0.0091 -0.1433)
OKLCHoklch(32.69% 0.144 273.6)
XYZxyz(4.9581, 3.1180, 19.4054)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22257C #7C7922
analogous
#22527C #22257C #4C227C
triadic
#22257C #7C2225 #257C22
tetradic
#22257C #7C2252 #7C7922 #227C4C
square
#22257C #7C2252 #7C7922 #227C4C
split-complementary
#22257C #7C4C22 #527C22
monochromatic
#08081C #15174C #22257C #2F33AC #4B4FCE

Accessibility & contrast

On white

12.93
#22257C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#22257C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22257C
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22257C#FFFFFF#000000##FFFFFF
##22257C1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #22257c;
/* rgb */ color: rgb(34, 37, 124);
/* oklch */ color: oklch(32.7% 0.144 273.6);
Tailwind
colors: {
  custom: {
    50: '#6b60a3',
    500: '#22257c',
    950: '#000000',
  },
}
SCSS
$custom: #22257c;
$custom-light: #6b60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#22257c",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 124
  },
  "hsl": {
    "h": 238,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32691,
    "c": 0.14363,
    "h": 273.6
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#22257C
secondary
#AFAB4B
accent
#DB48E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #22257C

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

Preview Lab → · Contrast checker → · Palette generator →

#22257C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva