#23178E#23178E

#23178E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.180 H 274.4°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#23178E
RGBrgb(35, 23, 142)
HSLhsl(246, 72%, 32%)
HSVhsv(246, 84%, 56%)
CMYKcmyk(75.4%, 83.8%, 0%, 44.3%)
CIE-LABlab(19.73, 43.74, -62.22)
CIE-LCHlch(19.73, 76.06, 305.11°)
OKLaboklab(32.75% 0.0138 -0.1799)
OKLCHoklch(32.75% 0.18 274.4)
XYZxyz(5.8804, 2.9225, 25.8401)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23178E #828E17
analogous
#17478E #23178E #5E178E
triadic
#23178E #8E2317 #178E23
tetradic
#23178E #8E1747 #828E17 #178E5E
square
#23178E #8E1747 #828E17 #178E5E
split-complementary
#23178E #8E5E17 #478E17
monochromatic
#090625 #160E59 #23178E #3020C3 #503FE0

Accessibility & contrast

On white

13.25
#23178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#23178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23178E
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23178E#FFFFFF#000000##FFFFFF
##23178E1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #23178e;
/* rgb */ color: rgb(35, 23, 142);
/* oklch */ color: oklch(32.7% 0.180 274.4);
Tailwind
colors: {
  custom: {
    50: '#7158b0',
    500: '#23178e',
    950: '#000000',
  },
}
SCSS
$custom: #23178e;
$custom-light: #7158b0;
$custom-dark: #000000;
JSON
{
  "hex": "#23178e",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 246.05,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32747,
    "c": 0.18045,
    "h": 274.4
  },
  "luminance": 0.02923
}

Semantic roles & 50–950 ramp

primary
#23178E
secondary
#B3C040
accent
#EF39DC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #23178E

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

Preview Lab → · Contrast checker → · Palette generator →

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