#23229E#23229E

#23229E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.190 H 271.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#23229E
RGBrgb(35, 34, 158)
HSLhsl(240, 65%, 38%)
HSVhsv(240, 78%, 62%)
CMYKcmyk(77.8%, 78.5%, 0%, 38%)
CIE-LABlab(23.57, 43.28, -65.73)
CIE-LCHlch(23.57, 78.70, 303.36°)
OKLaboklab(35.97% 0.006 -0.1903)
OKLCHoklch(35.97% 0.19 271.8)
XYZxyz(7.4346, 3.9692, 32.7154)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23229E #9D9E22
analogous
#225F9E #23229E #61229E
triadic
#23229E #9E2322 #229E23
tetradic
#23229E #9E225F #9D9E22 #229E61
square
#23229E #9E225F #9D9E22 #229E61
split-complementary
#23229E #9E6122 #5F9E22
monochromatic
#0D0C39 #18176C #23229E #2E2DD0 #5F5EDC

Accessibility & contrast

On white

11.71
#23229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#23229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23229E
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23229E#FFFFFF#000000##FFFFFF
##23229E1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #23229e;
/* rgb */ color: rgb(35, 34, 158);
/* oklch */ color: oklch(36.0% 0.190 271.8);
Tailwind
colors: {
  custom: {
    50: '#745fbc',
    500: '#23229e',
    950: '#000000',
  },
}
SCSS
$custom: #23229e;
$custom-light: #745fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#23229e",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 240.484,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.35974,
    "c": 0.19038,
    "h": 271.8
  },
  "luminance": 0.0397
}

Semantic roles & 50–950 ramp

primary
#23229E
secondary
#C0C15B
accent
#E840E6
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #23229E

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

Preview Lab → · Contrast checker → · Palette generator →

#23229E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva