#23228C#23228C

#23228C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.168 H 273.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#23228C
RGBrgb(35, 34, 140)
HSLhsl(241, 61%, 34%)
HSVhsv(241, 76%, 55%)
CMYKcmyk(75%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.56, 37.17, -57.95)
CIE-LCHlch(21.56, 68.84, 302.67°)
OKLaboklab(33.96% 0.0096 -0.1677)
OKLCHoklch(33.96% 0.168 273.3)
XYZxyz(5.9972, 3.3942, 25.1449)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23228C #8B8C22
analogous
#22568C #23228C #58228C
triadic
#23228C #8C2322 #228C23
tetradic
#23228C #8C2256 #8B8C22 #228C58
square
#23228C #8C2256 #8B8C22 #228C58
split-complementary
#23228C #8C5822 #568C22
monochromatic
#0A0A2A #17165B #23228C #2F2EBD #5453D5

Accessibility & contrast

On white

12.51
#23228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#23228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23228C
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23228C#FFFFFF#000000##FFFFFF
##23228C1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #23228c;
/* rgb */ color: rgb(35, 34, 140);
/* oklch */ color: oklch(34.0% 0.168 273.3);
Tailwind
colors: {
  custom: {
    50: '#705eaf',
    500: '#23228c',
    950: '#000000',
  },
}
SCSS
$custom: #23228c;
$custom-light: #705eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#23228c",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 240.566,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3396,
    "c": 0.16794,
    "h": 273.3
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#23228C
secondary
#B8B951
accent
#E444E3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #23228C

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

Preview Lab → · Contrast checker → · Palette generator →

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