#23178D#23178D

#23178D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.179 H 274.5°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#23178D
RGBrgb(35, 23, 141)
HSLhsl(246, 72%, 32%)
HSVhsv(246, 84%, 55%)
CMYKcmyk(75.2%, 83.7%, 0%, 44.7%)
CIE-LABlab(19.61, 43.43, -61.80)
CIE-LCHlch(19.61, 75.53, 305.10°)
OKLaboklab(32.63% 0.0141 -0.1787)
OKLCHoklch(32.63% 0.179 274.5)
XYZxyz(5.8057, 2.8926, 25.4465)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23178D #818D17
analogous
#17468D #23178D #5E178D
triadic
#23178D #8D2317 #178D23
tetradic
#23178D #8D1746 #818D17 #178D5E
square
#23178D #8D1746 #818D17 #178D5E
split-complementary
#23178D #8D5E17 #468D17
monochromatic
#090624 #160E58 #23178D #3020C2 #4F3FE0

Accessibility & contrast

On white

13.30
#23178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23178D
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23178D#FFFFFF#000000##FFFFFF
##23178D1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003590
Deuteranopia (green-blind)
#002A8B
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #23178d;
/* rgb */ color: rgb(35, 23, 141);
/* oklch */ color: oklch(32.6% 0.179 274.5);
Tailwind
colors: {
  custom: {
    50: '#7158b0',
    500: '#23178d',
    950: '#000000',
  },
}
SCSS
$custom: #23178d;
$custom-light: #7158b0;
$custom-dark: #000000;
JSON
{
  "hex": "#23178d",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 246.102,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32627,
    "c": 0.17925,
    "h": 274.5
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#23178D
secondary
#B3C040
accent
#EF39DC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #23178D

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

Preview Lab → · Contrast checker → · Palette generator →

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