#23228F#23228F

#23228F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.172 H 273.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#23228F
RGBrgb(35, 34, 143)
HSLhsl(241, 62%, 35%)
HSVhsv(241, 76%, 56%)
CMYKcmyk(75.5%, 76.2%, 0%, 43.9%)
CIE-LABlab(21.89, 38.20, -59.28)
CIE-LCHlch(21.89, 70.52, 302.80°)
OKLaboklab(34.29% 0.009 -0.1715)
OKLCHoklch(34.29% 0.172 273)
XYZxyz(6.2214, 3.4839, 26.3259)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23228F #8E8F22
analogous
#22588F #23228F #59228F
triadic
#23228F #8F2322 #228F23
tetradic
#23228F #8F2258 #8E8F22 #228F59
square
#23228F #8F2258 #8E8F22 #228F59
split-complementary
#23228F #8F5922 #588F22
monochromatic
#0B0A2C #17165E #23228F #2F2EC0 #5655D7

Accessibility & contrast

On white

12.37
#23228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#23228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23228F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23228F#FFFFFF#000000##FFFFFF
##23228F1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #23228f;
/* rgb */ color: rgb(35, 34, 143);
/* oklch */ color: oklch(34.3% 0.172 273.0);
Tailwind
colors: {
  custom: {
    50: '#715fb1',
    500: '#23228f',
    950: '#000000',
  },
}
SCSS
$custom: #23228f;
$custom-light: #715fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#23228f",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 240.55,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3429,
    "c": 0.17176,
    "h": 273
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#23228F
secondary
#B9BA52
accent
#E543E3
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #23228F

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

Preview Lab → · Contrast checker → · Palette generator →

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