#23218B#23218B

#23218B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.168 H 273.5°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#23218B
RGBrgb(35, 33, 139)
HSLhsl(241, 62%, 34%)
HSVhsv(241, 76%, 55%)
CMYKcmyk(74.8%, 76.3%, 0%, 45.5%)
CIE-LABlab(21.24, 37.41, -57.85)
CIE-LCHlch(21.24, 68.89, 302.89°)
OKLaboklab(33.7% 0.0103 -0.1674)
OKLCHoklch(33.7% 0.168 273.5)
XYZxyz(5.8956, 3.3085, 24.7490)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23218B #898B21
analogous
#21548B #23218B #58218B
triadic
#23218B #8B2321 #218B23
tetradic
#23218B #8B2154 #898B21 #218B58
square
#23218B #8B2154 #898B21 #218B58
split-complementary
#23218B #8B5821 #548B21
monochromatic
#0A0A28 #17155A #23218B #2F2DBC #5351D6

Accessibility & contrast

On white

12.64
#23218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#23218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23218B
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23218B#FFFFFF#000000##FFFFFF
##23218B1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #23218b;
/* rgb */ color: rgb(35, 33, 139);
/* oklch */ color: oklch(33.7% 0.168 273.5);
Tailwind
colors: {
  custom: {
    50: '#705eae',
    500: '#23218b',
    950: '#000000',
  },
}
SCSS
$custom: #23218b;
$custom-light: #705eae;
$custom-dark: #000000;
JSON
{
  "hex": "#23218b",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 241.132,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33701,
    "c": 0.16769,
    "h": 273.5
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#23218B
secondary
#B7B94F
accent
#E543E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #23218B

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

Preview Lab → · Contrast checker → · Palette generator →

#23218B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva