#23317C#23317C

#23317C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.128 H 270.4°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#23317C
RGBrgb(35, 49, 124)
HSLhsl(231, 56%, 31%)
HSVhsv(231, 72%, 49%)
CMYKcmyk(71.8%, 60.5%, 0%, 51.4%)
CIE-LABlab(23.70, 21.43, -44.39)
CIE-LCHlch(23.70, 49.29, 295.77°)
OKLaboklab(35.05% 0.0008 -0.1279)
OKLCHoklch(35.05% 0.128 270.4)
XYZxyz(5.4283, 4.0087, 19.5525)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23317C #7C6E23
analogous
#235D7C #23317C #41237C
triadic
#23317C #7C2331 #317C23
tetradic
#23317C #7C235D #7C6E23 #237C41
square
#23317C #7C235D #7C6E23 #237C41
split-complementary
#23317C #7C4123 #5D7C23
monochromatic
#080B1D #161E4C #23317C #3044AC #4D61CD

Accessibility & contrast

On white

11.66
#23317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#23317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23317C
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23317C#FFFFFF#000000##FFFFFF
##23317C1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#004451
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #23317c;
/* rgb */ color: rgb(35, 49, 124);
/* oklch */ color: oklch(35.1% 0.128 270.4);
Tailwind
colors: {
  custom: {
    50: '#6a68a3',
    500: '#23317c',
    950: '#000000',
  },
}
SCSS
$custom: #23317c;
$custom-light: #6a68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#23317c",
  "rgb": {
    "r": 35,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 230.562,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35052,
    "c": 0.12792,
    "h": 270.4
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#23317C
secondary
#AF9F4C
accent
#C849DF
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #23317C

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

Preview Lab → · Contrast checker → · Palette generator →

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