#23177E#23177E

#23177E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.161 H 276.5°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#23177E
RGBrgb(35, 23, 126)
HSLhsl(247, 69%, 29%)
HSVhsv(247, 82%, 49%)
CMYKcmyk(72.2%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.81, 38.62, -55.32)
CIE-LCHlch(17.81, 67.47, 304.92°)
OKLaboklab(30.85% 0.0183 -0.1599)
OKLCHoklch(30.85% 0.161 276.5)
XYZxyz(4.7642, 2.4760, 19.9615)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23177E #727E17
analogous
#173F7E #23177E #57177E
triadic
#23177E #7E2317 #177E23
tetradic
#23177E #7E173F #727E17 #177E57
square
#23177E #7E173F #727E17 #177E57
split-complementary
#23177E #7E5717 #3F7E17
monochromatic
#07051A #150E4A #23177E #3120B2 #4835DA

Accessibility & contrast

On white

14.04
#23177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#23177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23177E
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23177E#FFFFFF#000000##FFFFFF
##23177E1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #23177e;
/* rgb */ color: rgb(35, 23, 126);
/* oklch */ color: oklch(30.9% 0.161 276.5);
Tailwind
colors: {
  custom: {
    50: '#6d57a5',
    500: '#23177e',
    950: '#000000',
  },
}
SCSS
$custom: #23177e;
$custom-light: #6d57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23177e",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 246.99,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30854,
    "c": 0.16094,
    "h": 276.5
  },
  "luminance": 0.02476
}

Semantic roles & 50–950 ramp

primary
#23177E
secondary
#A5B33E
accent
#EC3CD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23177E

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

Preview Lab → · Contrast checker → · Palette generator →

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