#22235F#22235F

#22235F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.5% C 0.104 H 277.2°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#22235F
RGBrgb(34, 35, 95)
HSLhsl(239, 47%, 25%)
HSVhsv(239, 64%, 37%)
CMYKcmyk(64.2%, 63.2%, 0%, 62.7%)
CIE-LABlab(17.31, 19.95, -36.01)
CIE-LCHlch(17.31, 41.17, 298.99°)
OKLaboklab(29.52% 0.013 -0.1035)
OKLCHoklch(29.52% 0.104 277.2)
XYZxyz(3.3256, 2.3681, 11.1061)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22235F #5F5E22
analogous
#22425F #22235F #3F225F
triadic
#22235F #5F2223 #235F22
tetradic
#22235F #5F2242 #5F5E22 #225F3F
square
#22235F #5F2242 #5F5E22 #225F3F
split-complementary
#22235F #5F3F22 #425F22
monochromatic
#080817 #121232 #22235F #32348C #4244B9

Accessibility & contrast

On white

14.25
#22235F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#22235F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22235F
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22235F#FFFFFF#000000##FFFFFF
##22235F1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #22235f;
/* rgb */ color: rgb(34, 35, 95);
/* oklch */ color: oklch(29.5% 0.104 277.2);
Tailwind
colors: {
  custom: {
    50: '#645e8d',
    500: '#22235f',
    950: '#000000',
  },
}
SCSS
$custom: #22235f;
$custom-light: #645e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#22235f",
  "rgb": {
    "r": 34,
    "g": 35,
    "b": 95
  },
  "hsl": {
    "h": 239.016,
    "s": 47.287,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29521,
    "c": 0.10431,
    "h": 277.2
  },
  "luminance": 0.02368
}

Semantic roles & 50–950 ramp

primary
#22235F
secondary
#93924A
accent
#D551D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #22235F

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

Preview Lab → · Contrast checker → · Palette generator →

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