#23317D#23317D

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

Color values

HEX#23317D
RGBrgb(35, 49, 125)
HSLhsl(231, 56%, 31%)
HSVhsv(231, 72%, 49%)
CMYKcmyk(72%, 60.8%, 0%, 51%)
CIE-LABlab(23.78, 21.82, -44.88)
CIE-LCHlch(23.78, 49.90, 295.92°)
OKLaboklab(35.14% 0.0008 -0.1294)
OKLCHoklch(35.14% 0.129 270.4)
XYZxyz(5.4919, 4.0341, 19.8873)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23317D #7D6F23
analogous
#235E7D #23317D #42237D
triadic
#23317D #7D2331 #317D23
tetradic
#23317D #7D235E #7D6F23 #237D42
square
#23317D #7D235E #7D6F23 #237D42
split-complementary
#23317D #7D4223 #5E7D23
monochromatic
#080C1D #161E4D #23317D #3044AD #4D61CD

Accessibility & contrast

On white

11.62
#23317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#23317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23317D
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23317D#FFFFFF#000000##FFFFFF
##23317D1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #23317d;
/* rgb */ color: rgb(35, 49, 125);
/* oklch */ color: oklch(35.1% 0.129 270.4);
Tailwind
colors: {
  custom: {
    50: '#6b68a3',
    500: '#23317d',
    950: '#000000',
  },
}
SCSS
$custom: #23317d;
$custom-light: #6b68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#23317d",
  "rgb": {
    "r": 35,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 230.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3514,
    "c": 0.12938,
    "h": 270.4
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#23317D
secondary
#AFA04C
accent
#C848E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #23317D

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

Preview Lab → · Contrast checker → · Palette generator →

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