#23227A#23227A

#23227A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.144 H 275.1°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#23227A
RGBrgb(35, 34, 122)
HSLhsl(241, 56%, 31%)
HSVhsv(241, 72%, 48%)
CMYKcmyk(71.3%, 72.1%, 0%, 52.2%)
CIE-LABlab(19.66, 30.79, -49.72)
CIE-LCHlch(19.66, 58.48, 301.77°)
OKLaboklab(32.04% 0.0127 -0.1436)
OKLCHoklch(32.04% 0.144 275.1)
XYZxyz(4.7769, 2.9061, 18.7178)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23227A #797A22
analogous
#224D7A #23227A #4F227A
triadic
#23227A #7A2322 #227A23
tetradic
#23227A #7A224D #797A22 #227A4F
square
#23227A #7A224D #797A22 #227A4F
split-complementary
#23227A #7A4F22 #4D7A22
monochromatic
#08071A #15154A #23227A #312FAA #4B4ACD

Accessibility & contrast

On white

13.28
#23227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#23227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23227A
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23227A#FFFFFF#000000##FFFFFF
##23227A1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #23227a;
/* rgb */ color: rgb(35, 34, 122);
/* oklch */ color: oklch(32.0% 0.144 275.1);
Tailwind
colors: {
  custom: {
    50: '#6b5ea1',
    500: '#23227a',
    950: '#000000',
  },
}
SCSS
$custom: #23227a;
$custom-light: #6b5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#23227a",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 240.682,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32037,
    "c": 0.14421,
    "h": 275.1
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#23227A
secondary
#ACAD4B
accent
#E048DE
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #23227A

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

Preview Lab → · Contrast checker → · Palette generator →

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