#23217E#23217E

#23217E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.151 H 274.8°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#23217E
RGBrgb(35, 33, 126)
HSLhsl(241, 58%, 31%)
HSVhsv(241, 74%, 49%)
CMYKcmyk(72.2%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.85, 32.86, -51.96)
CIE-LCHlch(19.85, 61.48, 302.31°)
OKLaboklab(32.29% 0.0127 -0.1502)
OKLCHoklch(32.29% 0.151 274.8)
XYZxyz(5.0016, 2.9509, 20.0406)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23217E #7C7E21
analogous
#214D7E #23217E #51217E
triadic
#23217E #7E2321 #217E23
tetradic
#23217E #7E214D #7C7E21 #217E51
square
#23217E #7E214D #7C7E21 #217E51
split-complementary
#23217E #7E5121 #4D7E21
monochromatic
#08081D #16144E #23217E #302EAE #4D4AD0

Accessibility & contrast

On white

13.21
#23217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#23217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23217E
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23217E#FFFFFF#000000##FFFFFF
##23217E1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #23217e;
/* rgb */ color: rgb(35, 33, 126);
/* oklch */ color: oklch(32.3% 0.151 274.8);
Tailwind
colors: {
  custom: {
    50: '#6c5da4',
    500: '#23217e',
    950: '#000000',
  },
}
SCSS
$custom: #23217e;
$custom-light: #6c5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#23217e",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 241.29,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32292,
    "c": 0.15074,
    "h": 274.8
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#23217E
secondary
#AFB14A
accent
#E246DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #23217E

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

Preview Lab → · Contrast checker → · Palette generator →

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