#23227D#23227D

#23227D is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.148 H 274.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#23227D
RGBrgb(35, 34, 125)
HSLhsl(241, 57%, 31%)
HSVhsv(241, 73%, 49%)
CMYKcmyk(72%, 72.8%, 0%, 51%)
CIE-LABlab(19.97, 31.87, -51.12)
CIE-LCHlch(19.97, 60.25, 301.94°)
OKLaboklab(32.35% 0.0123 -0.1478)
OKLCHoklch(32.35% 0.148 274.7)
XYZxyz(4.9656, 2.9816, 19.7119)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23227D #7C7D22
analogous
#224E7D #23227D #50227D
triadic
#23227D #7D2322 #227D23
tetradic
#23227D #7D224E #7C7D22 #227D50
square
#23227D #7D224E #7C7D22 #227D50
split-complementary
#23227D #7D5022 #4E7D22
monochromatic
#08081D #16154D #23227D #302FAD #4D4BCE

Accessibility & contrast

On white

13.15
#23227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23227D
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23227D#FFFFFF#000000##FFFFFF
##23227D1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23227d;
/* rgb */ color: rgb(35, 34, 125);
/* oklch */ color: oklch(32.4% 0.148 274.7);
Tailwind
colors: {
  custom: {
    50: '#6c5ea4',
    500: '#23227d',
    950: '#000000',
  },
}
SCSS
$custom: #23227d;
$custom-light: #6c5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#23227d",
  "rgb": {
    "r": 35,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 240.659,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3235,
    "c": 0.14827,
    "h": 274.7
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#23227D
secondary
#AFB04B
accent
#E047DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #23227D

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

Preview Lab → · Contrast checker → · Palette generator →

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