#23217C#23217C

#23217C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.148 H 275.1°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#23217C
RGBrgb(35, 33, 124)
HSLhsl(241, 58%, 31%)
HSVhsv(241, 73%, 49%)
CMYKcmyk(71.8%, 73.4%, 0%, 51.4%)
CIE-LABlab(19.64, 32.15, -51.03)
CIE-LCHlch(19.64, 60.31, 302.21°)
OKLaboklab(32.08% 0.0131 -0.1475)
OKLCHoklch(32.08% 0.148 275.1)
XYZxyz(4.8739, 2.8998, 19.3677)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23217C #7A7C21
analogous
#214C7C #23217C #50217C
triadic
#23217C #7C2321 #217C23
tetradic
#23217C #7C214C #7A7C21 #217C50
square
#23217C #7C214C #7A7C21 #217C50
split-complementary
#23217C #7C5021 #4C7C21
monochromatic
#08071B #15144C #23217C #312EAC #4C49CF

Accessibility & contrast

On white

13.29
#23217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#23217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23217C
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23217C#FFFFFF#000000##FFFFFF
##23217C1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #23217c;
/* rgb */ color: rgb(35, 33, 124);
/* oklch */ color: oklch(32.1% 0.148 275.1);
Tailwind
colors: {
  custom: {
    50: '#6c5da3',
    500: '#23217c',
    950: '#000000',
  },
}
SCSS
$custom: #23217c;
$custom-light: #6c5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#23217c",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 241.319,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32081,
    "c": 0.14807,
    "h": 275.1
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#23217C
secondary
#ADAF4A
accent
#E147DE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #23217C

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

Preview Lab → · Contrast checker → · Palette generator →

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