#23218F#23218F

#23218F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.173 H 273.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#23218F
RGBrgb(35, 33, 143)
HSLhsl(241, 63%, 35%)
HSVhsv(241, 77%, 56%)
CMYKcmyk(75.5%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.68, 38.78, -59.61)
CIE-LCHlch(21.68, 71.12, 303.05°)
OKLaboklab(34.14% 0.0095 -0.1725)
OKLCHoklch(34.14% 0.173 273.2)
XYZxyz(6.1933, 3.4276, 26.3165)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23218F #8D8F21
analogous
#21568F #23218F #5A218F
triadic
#23218F #8F2321 #218F23
tetradic
#23218F #8F2156 #8D8F21 #218F5A
square
#23218F #8F2156 #8D8F21 #218F5A
split-complementary
#23218F #8F5A21 #568F21
monochromatic
#0B0A2C #17165D #23218F #2F2CC1 #5553D7

Accessibility & contrast

On white

12.46
#23218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#23218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23218F
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23218F#FFFFFF#000000##FFFFFF
##23218F1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #23218f;
/* rgb */ color: rgb(35, 33, 143);
/* oklch */ color: oklch(34.1% 0.173 273.2);
Tailwind
colors: {
  custom: {
    50: '#715eb1',
    500: '#23218f',
    950: '#000000',
  },
}
SCSS
$custom: #23218f;
$custom-light: #715eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#23218f",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 241.091,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34145,
    "c": 0.17276,
    "h": 273.2
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#23218F
secondary
#B9BB51
accent
#E642E3
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #23218F

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

Preview Lab → · Contrast checker → · Palette generator →

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