#23227F#23227F

#23227F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.151 H 274.5°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#23227F
RGBrgb(35, 34, 127)
HSLhsl(241, 58%, 32%)
HSVhsv(241, 73%, 50%)
CMYKcmyk(72.4%, 73.2%, 0%, 50.2%)
CIE-LABlab(20.18, 32.59, -52.05)
CIE-LCHlch(20.18, 61.41, 302.05°)
OKLaboklab(32.56% 0.0119 -0.1505)
OKLCHoklch(32.56% 0.151 274.5)
XYZxyz(5.0947, 3.0332, 20.3915)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23227F #7E7F22
analogous
#22507F #23227F #52227F
triadic
#23227F #7F2322 #227F23
tetradic
#23227F #7F2250 #7E7F22 #227F52
square
#23227F #7F2250 #7E7F22 #227F52
split-complementary
#23227F #7F5222 #507F22
monochromatic
#08081E #16154F #23227F #302FAF #4E4CCF

Accessibility & contrast

On white

13.07
#23227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#23227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23227F
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23227F#FFFFFF#000000##FFFFFF
##23227F1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #23227f;
/* rgb */ color: rgb(35, 34, 127);
/* oklch */ color: oklch(32.6% 0.151 274.5);
Tailwind
colors: {
  custom: {
    50: '#6d5ea5',
    500: '#23227f',
    950: '#000000',
  },
}
SCSS
$custom: #23227f;
$custom-light: #6d5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#23227f",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 240.645,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3256,
    "c": 0.15094,
    "h": 274.5
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23227F

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

Preview Lab → · Contrast checker → · Palette generator →

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