#23317B#23317B

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

Color values

HEX#23317B
RGBrgb(35, 49, 123)
HSLhsl(230, 56%, 31%)
HSVhsv(230, 72%, 48%)
CMYKcmyk(71.5%, 60.2%, 0%, 51.8%)
CIE-LABlab(23.62, 21.04, -43.89)
CIE-LCHlch(23.62, 48.67, 295.61°)
OKLaboklab(34.96% 0.0008 -0.1265)
OKLCHoklch(34.96% 0.126 270.4)
XYZxyz(5.3654, 3.9835, 19.2212)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23317B #7B6D23
analogous
#235D7B #23317B #41237B
triadic
#23317B #7B2331 #317B23
tetradic
#23317B #7B235D #7B6D23 #237B41
square
#23317B #7B235D #7B6D23 #237B41
split-complementary
#23317B #7B4123 #5D7B23
monochromatic
#080B1C #151E4B #23317B #3144AB #4C61CC

Accessibility & contrast

On white

11.69
#23317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23317B
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23317B#FFFFFF#000000##FFFFFF
##23317B1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #23317b;
/* rgb */ color: rgb(35, 49, 123);
/* oklch */ color: oklch(35.0% 0.126 270.4);
Tailwind
colors: {
  custom: {
    50: '#6a68a2',
    500: '#23317b',
    950: '#000000',
  },
}
SCSS
$custom: #23317b;
$custom-light: #6a68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#23317b",
  "rgb": {
    "r": 35,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 230.455,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34964,
    "c": 0.12646,
    "h": 270.4
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23317B

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

Preview Lab → · Contrast checker → · Palette generator →

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