#23178F#23178F

#23178F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.182 H 274.3°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#23178F
RGBrgb(35, 23, 143)
HSLhsl(246, 72%, 33%)
HSVhsv(246, 84%, 56%)
CMYKcmyk(75.5%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.85, 44.06, -62.64)
CIE-LCHlch(19.85, 76.58, 305.12°)
OKLaboklab(32.87% 0.0135 -0.1811)
OKLCHoklch(32.87% 0.182 274.3)
XYZxyz(5.9558, 2.9527, 26.2373)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23178F #838F17
analogous
#17478F #23178F #5F178F
triadic
#23178F #8F2317 #178F23
tetradic
#23178F #8F1747 #838F17 #178F5F
square
#23178F #8F1747 #838F17 #178F5F
split-complementary
#23178F #8F5F17 #478F17
monochromatic
#090626 #160F5A #23178F #301FC4 #5040E0

Accessibility & contrast

On white

13.20
#23178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#23178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23178F
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23178F#FFFFFF#000000##FFFFFF
##23178F1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23178f;
/* rgb */ color: rgb(35, 23, 143);
/* oklch */ color: oklch(32.9% 0.182 274.3);
Tailwind
colors: {
  custom: {
    50: '#7258b1',
    500: '#23178f',
    950: '#000000',
  },
}
SCSS
$custom: #23178f;
$custom-light: #7258b1;
$custom-dark: #000000;
JSON
{
  "hex": "#23178f",
  "rgb": {
    "r": 35,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 246,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32867,
    "c": 0.18164,
    "h": 274.3
  },
  "luminance": 0.02953
}

Semantic roles & 50–950 ramp

primary
#23178F
secondary
#B4C141
accent
#EF39DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #23178F

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

Preview Lab → · Contrast checker → · Palette generator →

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