#23227C#23227C

#23227C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.147 H 274.8°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#23227C
RGBrgb(35, 34, 124)
HSLhsl(241, 57%, 31%)
HSVhsv(241, 73%, 49%)
CMYKcmyk(71.8%, 72.6%, 0%, 51.4%)
CIE-LABlab(19.87, 31.51, -50.66)
CIE-LCHlch(19.87, 59.66, 301.89°)
OKLaboklab(32.25% 0.0124 -0.1464)
OKLCHoklch(32.25% 0.147 274.8)
XYZxyz(4.9021, 2.9562, 19.3771)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23227C #7B7C22
analogous
#224E7C #23227C #50227C
triadic
#23227C #7C2322 #227C23
tetradic
#23227C #7C224E #7B7C22 #227C50
square
#23227C #7C224E #7B7C22 #227C50
split-complementary
#23227C #7C5022 #4E7C22
monochromatic
#08081C #15154C #23227C #312FAC #4C4BCE

Accessibility & contrast

On white

13.20
#23227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#23227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23227C
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23227C#FFFFFF#000000##FFFFFF
##23227C1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #23227c;
/* rgb */ color: rgb(35, 34, 124);
/* oklch */ color: oklch(32.2% 0.147 274.8);
Tailwind
colors: {
  custom: {
    50: '#6c5ea3',
    500: '#23227c',
    950: '#000000',
  },
}
SCSS
$custom: #23227c;
$custom-light: #6c5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#23227c",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 240.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32245,
    "c": 0.14692,
    "h": 274.8
  },
  "luminance": 0.02957
}

Semantic roles & 50–950 ramp

primary
#23227C
secondary
#AEAF4B
accent
#E048DF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #23227C

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

Preview Lab → · Contrast checker → · Palette generator →

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