#23227B#23227B

#23227B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.146 H 275.0°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#23227B
RGBrgb(35, 34, 123)
HSLhsl(241, 57%, 31%)
HSVhsv(241, 72%, 48%)
CMYKcmyk(71.5%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.77, 31.15, -50.19)
CIE-LCHlch(19.77, 59.07, 301.83°)
OKLaboklab(32.14% 0.0126 -0.145)
OKLCHoklch(32.14% 0.146 275)
XYZxyz(4.8391, 2.9310, 19.0458)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23227B #7A7B22
analogous
#224D7B #23227B #4F227B
triadic
#23227B #7B2322 #227B23
tetradic
#23227B #7B224D #7A7B22 #227B4F
square
#23227B #7B224D #7A7B22 #227B4F
split-complementary
#23227B #7B4F22 #4D7B22
monochromatic
#08071B #15154B #23227B #312FAB #4C4ACD

Accessibility & contrast

On white

13.24
#23227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23227B
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23227B#FFFFFF#000000##FFFFFF
##23227B1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #23227b;
/* rgb */ color: rgb(35, 34, 123);
/* oklch */ color: oklch(32.1% 0.146 275.0);
Tailwind
colors: {
  custom: {
    50: '#6c5ea2',
    500: '#23227b',
    950: '#000000',
  },
}
SCSS
$custom: #23227b;
$custom-light: #6c5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#23227b",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 240.674,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32141,
    "c": 0.14556,
    "h": 275
  },
  "luminance": 0.02931
}

Semantic roles & 50–950 ramp

primary
#23227B
secondary
#ADAE4B
accent
#E048DE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #23227B

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

Preview Lab → · Contrast checker → · Palette generator →

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