#23218C#23218C

#23218C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.169 H 273.4°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#23218C
RGBrgb(35, 33, 140)
HSLhsl(241, 62%, 34%)
HSVhsv(241, 76%, 55%)
CMYKcmyk(75%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.35, 37.75, -58.29)
CIE-LCHlch(21.35, 69.45, 302.93°)
OKLaboklab(33.81% 0.0101 -0.1687)
OKLCHoklch(33.81% 0.169 273.4)
XYZxyz(5.9690, 3.3379, 25.1356)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23218C #8A8C21
analogous
#21558C #23218C #59218C
triadic
#23218C #8C2321 #218C23
tetradic
#23218C #8C2155 #8A8C21 #218C59
square
#23218C #8C2155 #8A8C21 #218C59
split-complementary
#23218C #8C5921 #558C21
monochromatic
#0A0A29 #17155A #23218C #2F2DBE #5451D6

Accessibility & contrast

On white

12.59
#23218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#23218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23218C
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23218C#FFFFFF#000000##FFFFFF
##23218C1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #23218c;
/* rgb */ color: rgb(35, 33, 140);
/* oklch */ color: oklch(33.8% 0.169 273.4);
Tailwind
colors: {
  custom: {
    50: '#705eaf',
    500: '#23218c',
    950: '#000000',
  },
}
SCSS
$custom: #23218c;
$custom-light: #705eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#23218c",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 241.121,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33812,
    "c": 0.16896,
    "h": 273.4
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#23218C
secondary
#B7B94F
accent
#E543E2
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #23218C

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

Preview Lab → · Contrast checker → · Palette generator →

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