#23218E#23218E

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

Color values

HEX#23218E
RGBrgb(35, 33, 142)
HSLhsl(241, 62%, 34%)
HSVhsv(241, 77%, 56%)
CMYKcmyk(75.4%, 76.8%, 0%, 44.3%)
CIE-LABlab(21.57, 38.44, -59.18)
CIE-LCHlch(21.57, 70.57, 303.01°)
OKLaboklab(34.03% 0.0097 -0.1712)
OKLCHoklch(34.03% 0.172 273.2)
XYZxyz(6.1178, 3.3974, 25.9193)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23218E #8C8E21
analogous
#21568E #23218E #5A218E
triadic
#23218E #8E2321 #218E23
tetradic
#23218E #8E2156 #8C8E21 #218E5A
square
#23218E #8E2156 #8C8E21 #218E5A
split-complementary
#23218E #8E5A21 #568E21
monochromatic
#0B0A2B #17155C #23218E #2F2DC0 #5552D7

Accessibility & contrast

On white

12.50
#23218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#23218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23218E
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23218E#FFFFFF#000000##FFFFFF
##23218E1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23218e;
/* rgb */ color: rgb(35, 33, 142);
/* oklch */ color: oklch(34.0% 0.172 273.2);
Tailwind
colors: {
  custom: {
    50: '#705eb0',
    500: '#23218e',
    950: '#000000',
  },
}
SCSS
$custom: #23218e;
$custom-light: #705eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#23218e",
  "rgb": {
    "r": 35,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 241.101,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34034,
    "c": 0.1715,
    "h": 273.2
  },
  "luminance": 0.03398
}

Semantic roles & 50–950 ramp

primary
#23218E
secondary
#B8BA50
accent
#E542E2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #23218E

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

Preview Lab → · Contrast checker → · Palette generator →

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