#23228B#23228B

#23228B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.167 H 273.4°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#23228B
RGBrgb(35, 34, 139)
HSLhsl(241, 61%, 34%)
HSVhsv(241, 76%, 55%)
CMYKcmyk(74.8%, 75.5%, 0%, 45.5%)
CIE-LABlab(21.45, 36.82, -57.50)
CIE-LCHlch(21.45, 68.28, 302.63°)
OKLaboklab(33.85% 0.0098 -0.1664)
OKLCHoklch(33.85% 0.167 273.4)
XYZxyz(5.9238, 3.3649, 24.7584)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23228B #8A8B22
analogous
#22568B #23228B #58228B
triadic
#23228B #8B2322 #228B23
tetradic
#23228B #8B2256 #8A8B22 #228B58
square
#23228B #8B2256 #8A8B22 #228B58
split-complementary
#23228B #8B5822 #568B22
monochromatic
#0A0A29 #17165A #23228B #2F2EBC #5453D5

Accessibility & contrast

On white

12.55
#23228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#23228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23228B
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23228B#FFFFFF#000000##FFFFFF
##23228B1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002E89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #23228b;
/* rgb */ color: rgb(35, 34, 139);
/* oklch */ color: oklch(33.9% 0.167 273.4);
Tailwind
colors: {
  custom: {
    50: '#705eae',
    500: '#23228b',
    950: '#000000',
  },
}
SCSS
$custom: #23228b;
$custom-light: #705eae;
$custom-dark: #000000;
JSON
{
  "hex": "#23228b",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 240.571,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33851,
    "c": 0.16665,
    "h": 273.4
  },
  "luminance": 0.03365
}

Semantic roles & 50–950 ramp

primary
#23228B
secondary
#B7B850
accent
#E444E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #23228B

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

Preview Lab → · Contrast checker → · Palette generator →

#23228B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva