#22258F#22258F

#22258F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.169 H 272.2°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#22258F
RGBrgb(34, 37, 143)
HSLhsl(238, 62%, 35%)
HSVhsv(238, 76%, 56%)
CMYKcmyk(76.2%, 74.1%, 0%, 43.9%)
CIE-LABlab(22.46, 36.32, -58.32)
CIE-LCHlch(22.46, 68.71, 301.91°)
OKLaboklab(34.69% 0.0064 -0.1688)
OKLCHoklch(34.69% 0.169 272.2)
XYZxyz(6.2775, 3.6457, 26.3541)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22258F #8F8C22
analogous
#225B8F #22258F #56228F
triadic
#22258F #8F2225 #258F22
tetradic
#22258F #8F225B #8F8C22 #228F56
square
#22258F #8F225B #8F8C22 #228F56
split-complementary
#22258F #8F5622 #5B8F22
monochromatic
#0A0B2C #16185E #22258F #2E32C0 #5558D7

Accessibility & contrast

On white

12.14
#22258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#22258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22258F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22258F#FFFFFF#000000##FFFFFF
##22258F1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #22258f;
/* rgb */ color: rgb(34, 37, 143);
/* oklch */ color: oklch(34.7% 0.169 272.2);
Tailwind
colors: {
  custom: {
    50: '#7060b1',
    500: '#22258f',
    950: '#000000',
  },
}
SCSS
$custom: #22258f;
$custom-light: #7060b1;
$custom-dark: #000000;
JSON
{
  "hex": "#22258f",
  "rgb": {
    "r": 34,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 238.349,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34685,
    "c": 0.16891,
    "h": 272.2
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#22258F
secondary
#BAB852
accent
#E043E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #22258F

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

Preview Lab → · Contrast checker → · Palette generator →

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