#23227E#23227E

#23227E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.150 H 274.6°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#23227E
RGBrgb(35, 34, 126)
HSLhsl(241, 58%, 31%)
HSVhsv(241, 73%, 49%)
CMYKcmyk(72.2%, 73%, 0%, 50.6%)
CIE-LABlab(20.07, 32.23, -51.59)
CIE-LCHlch(20.07, 60.83, 302.00°)
OKLaboklab(32.46% 0.0121 -0.1491)
OKLCHoklch(32.46% 0.15 274.6)
XYZxyz(5.0298, 3.0073, 20.0500)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23227E #7D7E22
analogous
#224F7E #23227E #51227E
triadic
#23227E #7E2322 #227E23
tetradic
#23227E #7E224F #7D7E22 #227E51
square
#23227E #7E224F #7D7E22 #227E51
split-complementary
#23227E #7E5122 #4F7E22
monochromatic
#08081E #16154E #23227E #302FAE #4D4CCF

Accessibility & contrast

On white

13.11
#23227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#23227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23227E
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23227E#FFFFFF#000000##FFFFFF
##23227E1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #23227e;
/* rgb */ color: rgb(35, 34, 126);
/* oklch */ color: oklch(32.5% 0.150 274.6);
Tailwind
colors: {
  custom: {
    50: '#6c5ea4',
    500: '#23227e',
    950: '#000000',
  },
}
SCSS
$custom: #23227e;
$custom-light: #6c5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#23227e",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 240.652,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32455,
    "c": 0.14961,
    "h": 274.6
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#23227E
secondary
#AFB14B
accent
#E147DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #23227E

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

Preview Lab → · Contrast checker → · Palette generator →

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