#23178C#23178C

#23178C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.178 H 274.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#23178C
RGBrgb(35, 23, 140)
HSLhsl(246, 72%, 32%)
HSVhsv(246, 84%, 55%)
CMYKcmyk(75%, 83.6%, 0%, 45.1%)
CIE-LABlab(19.49, 43.11, -61.38)
CIE-LCHlch(19.49, 75.00, 305.09°)
OKLaboklab(32.51% 0.0144 -0.1775)
OKLCHoklch(32.51% 0.178 274.6)
XYZxyz(5.7316, 2.8630, 25.0564)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23178C #808C17
analogous
#17468C #23178C #5E178C
triadic
#23178C #8C2317 #178C23
tetradic
#23178C #8C1746 #808C17 #178C5E
square
#23178C #8C1746 #808C17 #178C5E
split-complementary
#23178C #8C5E17 #468C17
monochromatic
#090623 #160E57 #23178C #3020C1 #4F3EDF

Accessibility & contrast

On white

13.35
#23178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#23178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23178C
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23178C#FFFFFF#000000##FFFFFF
##23178C1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #23178c;
/* rgb */ color: rgb(35, 23, 140);
/* oklch */ color: oklch(32.5% 0.178 274.6);
Tailwind
colors: {
  custom: {
    50: '#7158af',
    500: '#23178c',
    950: '#000000',
  },
}
SCSS
$custom: #23178c;
$custom-light: #7158af;
$custom-dark: #000000;
JSON
{
  "hex": "#23178c",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 246.154,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32507,
    "c": 0.17806,
    "h": 274.6
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#23178C
secondary
#B2BF3F
accent
#EF39DC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #23178C

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

Preview Lab → · Contrast checker → · Palette generator →

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