#23217F#23217F

#23217F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.152 H 274.7°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#23217F
RGBrgb(35, 33, 127)
HSLhsl(241, 59%, 31%)
HSVhsv(241, 74%, 50%)
CMYKcmyk(72.4%, 74%, 0%, 50.2%)
CIE-LABlab(19.95, 33.21, -52.42)
CIE-LCHlch(19.95, 62.06, 302.36°)
OKLaboklab(32.4% 0.0126 -0.1515)
OKLCHoklch(32.4% 0.152 274.7)
XYZxyz(5.0665, 2.9769, 20.3821)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23217F #7D7F21
analogous
#214E7F #23217F #52217F
triadic
#23217F #7F2321 #217F23
tetradic
#23217F #7F214E #7D7F21 #217F52
square
#23217F #7F214E #7D7F21 #217F52
split-complementary
#23217F #7F5221 #4E7F21
monochromatic
#08081E #16144E #23217F #302EB0 #4D4AD0

Accessibility & contrast

On white

13.16
#23217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#23217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23217F
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23217F#FFFFFF#000000##FFFFFF
##23217F1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23217f;
/* rgb */ color: rgb(35, 33, 127);
/* oklch */ color: oklch(32.4% 0.152 274.7);
Tailwind
colors: {
  custom: {
    50: '#6d5da5',
    500: '#23217f',
    950: '#000000',
  },
}
SCSS
$custom: #23217f;
$custom-light: #6d5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#23217f",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 241.277,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32399,
    "c": 0.15207,
    "h": 274.7
  },
  "luminance": 0.02977
}

Semantic roles & 50–950 ramp

primary
#23217F
secondary
#AFB24A
accent
#E246DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #23217F

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

Preview Lab → · Contrast checker → · Palette generator →

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