#22258C#22258C

#22258C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.165 H 272.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#22258C
RGBrgb(34, 37, 140)
HSLhsl(238, 61%, 34%)
HSVhsv(238, 76%, 55%)
CMYKcmyk(75.7%, 73.6%, 0%, 45.1%)
CIE-LABlab(22.15, 35.25, -56.98)
CIE-LCHlch(22.15, 67.01, 301.74°)
OKLaboklab(34.36% 0.0068 -0.1649)
OKLCHoklch(34.36% 0.165 272.4)
XYZxyz(6.0533, 3.5560, 25.1732)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22258C #8C8922
analogous
#225A8C #22258C #54228C
triadic
#22258C #8C2225 #258C22
tetradic
#22258C #8C225A #8C8922 #228C54
square
#22258C #8C225A #8C8922 #228C54
split-complementary
#22258C #8C5422 #5A8C22
monochromatic
#0A0B2A #16185B #22258C #2E32BD #5357D5

Accessibility & contrast

On white

12.27
#22258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#22258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22258C
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22258C#FFFFFF#000000##FFFFFF
##22258C1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #22258c;
/* rgb */ color: rgb(34, 37, 140);
/* oklch */ color: oklch(34.4% 0.165 272.4);
Tailwind
colors: {
  custom: {
    50: '#6f60af',
    500: '#22258c',
    950: '#000000',
  },
}
SCSS
$custom: #22258c;
$custom-light: #6f60af;
$custom-dark: #000000;
JSON
{
  "hex": "#22258c",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 238.302,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34362,
    "c": 0.16502,
    "h": 272.4
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#22258C
secondary
#B9B651
accent
#E044E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #22258C

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

Preview Lab → · Contrast checker → · Palette generator →

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