#23317F#23317F

#23317F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.132 H 270.4°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#23317F
RGBrgb(35, 49, 127)
HSLhsl(231, 57%, 32%)
HSVhsv(231, 72%, 50%)
CMYKcmyk(72.4%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.95, 22.59, -45.87)
CIE-LCHlch(23.95, 51.13, 296.22°)
OKLaboklab(35.32% 0.0008 -0.1323)
OKLCHoklch(35.32% 0.132 270.4)
XYZxyz(5.6209, 4.0857, 20.5670)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23317F #7F7123
analogous
#235F7F #23317F #43237F
triadic
#23317F #7F2331 #317F23
tetradic
#23317F #7F235F #7F7123 #237F43
square
#23317F #7F235F #7F7123 #237F43
split-complementary
#23317F #7F4323 #5F7F23
monochromatic
#090C1F #161E4F #23317F #3044AF #4E62CE

Accessibility & contrast

On white

11.56
#23317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#23317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23317F
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23317F#FFFFFF#000000##FFFFFF
##23317F1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #23317f;
/* rgb */ color: rgb(35, 49, 127);
/* oklch */ color: oklch(35.3% 0.132 270.4);
Tailwind
colors: {
  custom: {
    50: '#6b68a5',
    500: '#23317f',
    950: '#000000',
  },
}
SCSS
$custom: #23317f;
$custom-light: #6b68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23317f",
  "rgb": {
    "r": 35,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 230.87,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35319,
    "c": 0.13228,
    "h": 270.4
  },
  "luminance": 0.04086
}

Semantic roles & 50–950 ramp

primary
#23317F
secondary
#B1A24C
accent
#C948E0
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #23317F

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

Preview Lab → · Contrast checker → · Palette generator →

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