#23178B#23178B

#23178B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.177 H 274.7°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#23178B
RGBrgb(35, 23, 139)
HSLhsl(246, 72%, 32%)
HSVhsv(246, 83%, 55%)
CMYKcmyk(74.8%, 83.5%, 0%, 45.5%)
CIE-LABlab(19.36, 42.80, -60.95)
CIE-LCHlch(19.36, 74.48, 305.07°)
OKLaboklab(32.39% 0.0146 -0.1762)
OKLCHoklch(32.39% 0.177 274.7)
XYZxyz(5.6582, 2.8336, 24.6698)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23178B #7F8B17
analogous
#17458B #23178B #5D178B
triadic
#23178B #8B2317 #178B23
tetradic
#23178B #8B1745 #7F8B17 #178B5D
square
#23178B #8B1745 #7F8B17 #178B5D
split-complementary
#23178B #8B5D17 #458B17
monochromatic
#090622 #160E56 #23178B #3020C0 #4E3DDF

Accessibility & contrast

On white

13.40
#23178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23178B
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23178B#FFFFFF#000000##FFFFFF
##23178B1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #23178b;
/* rgb */ color: rgb(35, 23, 139);
/* oklch */ color: oklch(32.4% 0.177 274.7);
Tailwind
colors: {
  custom: {
    50: '#7158ae',
    500: '#23178b',
    950: '#000000',
  },
}
SCSS
$custom: #23178b;
$custom-light: #7158ae;
$custom-dark: #000000;
JSON
{
  "hex": "#23178b",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 246.207,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32388,
    "c": 0.17686,
    "h": 274.7
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

primary
#23178B
secondary
#B1BF3F
accent
#EE39DC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #23178B

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

Preview Lab → · Contrast checker → · Palette generator →

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