#23317A#23317A

#23317A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.9% C 0.125 H 270.3°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#23317A
RGBrgb(35, 49, 122)
HSLhsl(230, 55%, 31%)
HSVhsv(230, 71%, 48%)
CMYKcmyk(71.3%, 59.8%, 0%, 52.2%)
CIE-LABlab(23.53, 20.65, -43.39)
CIE-LCHlch(23.53, 48.05, 295.45°)
OKLaboklab(34.88% 0.0008 -0.125)
OKLCHoklch(34.88% 0.125 270.3)
XYZxyz(5.3031, 3.9586, 18.8932)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23317A #7A6C23
analogous
#235C7A #23317A #40237A
triadic
#23317A #7A2331 #317A23
tetradic
#23317A #7A235C #7A6C23 #237A40
square
#23317A #7A235C #7A6C23 #237A40
split-complementary
#23317A #7A4023 #5C7A23
monochromatic
#080B1B #151E4A #23317A #3144AA #4C60CC

Accessibility & contrast

On white

11.72
#23317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#23317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23317A
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23317A#FFFFFF#000000##FFFFFF
##23317A1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #23317a;
/* rgb */ color: rgb(35, 49, 122);
/* oklch */ color: oklch(34.9% 0.125 270.3);
Tailwind
colors: {
  custom: {
    50: '#6a68a1',
    500: '#23317a',
    950: '#000000',
  },
}
SCSS
$custom: #23317a;
$custom-light: #6a68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#23317a",
  "rgb": {
    "r": 35,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 230.345,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34876,
    "c": 0.12499,
    "h": 270.3
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#23317A
secondary
#AD9D4C
accent
#C749DF
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #23317A

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

Preview Lab → · Contrast checker → · Palette generator →

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