#23117E#23117E

#23117E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.166 H 277.2°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#23117E
RGBrgb(35, 17, 126)
HSLhsl(250, 76%, 28%)
HSVhsv(250, 87%, 49%)
CMYKcmyk(72.2%, 86.5%, 0%, 50.6%)
CIE-LABlab(16.82, 41.53, -56.97)
CIE-LCHlch(16.82, 70.50, 306.09°)
OKLaboklab(30.17% 0.0209 -0.1646)
OKLCHoklch(30.17% 0.166 277.2)
XYZxyz(4.6583, 2.2642, 19.9262)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23117E #6C7E11
analogous
#11367E #23117E #59117E
triadic
#23117E #7E2311 #117E23
tetradic
#23117E #7E1136 #6C7E11 #117E59
square
#23117E #7E1136 #6C7E11 #117E59
split-complementary
#23117E #7E5911 #367E11
monochromatic
#07041B #140A48 #23117E #3218B4 #4627E2

Accessibility & contrast

On white

14.45
#23117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#23117E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23117E
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23117E#FFFFFF#000000##FFFFFF
##23117E1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #23117e;
/* rgb */ color: rgb(35, 17, 126);
/* oklch */ color: oklch(30.2% 0.166 277.2);
Tailwind
colors: {
  custom: {
    50: '#6e54a5',
    500: '#23117e',
    950: '#000000',
  },
}
SCSS
$custom: #23117e;
$custom-light: #6e54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23117e",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 249.908,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30167,
    "c": 0.1659,
    "h": 277.2
  },
  "luminance": 0.02265
}

Semantic roles & 50–950 ramp

primary
#23117E
secondary
#9FB437
accent
#F335D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23117E

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

Preview Lab → · Contrast checker → · Palette generator →

#23117E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva