#23158D#23158D

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

Color values

HEX#23158D
RGBrgb(35, 21, 141)
HSLhsl(247, 74%, 32%)
HSVhsv(247, 85%, 55%)
CMYKcmyk(75.2%, 85.1%, 0%, 44.7%)
CIE-LABlab(19.29, 44.36, -62.32)
CIE-LCHlch(19.29, 76.50, 305.44°)
OKLaboklab(32.41% 0.0147 -0.1802)
OKLCHoklch(32.41% 0.181 274.7)
XYZxyz(5.7674, 2.8162, 25.4338)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23158D #7F8D15
analogous
#15438D #23158D #5F158D
triadic
#23158D #8D2315 #158D23
tetradic
#23158D #8D1543 #7F8D15 #158D5F
square
#23158D #8D1543 #7F8D15 #158D5F
split-complementary
#23158D #8D5F15 #438D15
monochromatic
#090522 #160D58 #23158D #301DC2 #4E3BE2

Accessibility & contrast

On white

13.43
#23158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#23158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23158D
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23158D#FFFFFF#000000##FFFFFF
##23158D1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #23158d;
/* rgb */ color: rgb(35, 21, 141);
/* oklch */ color: oklch(32.4% 0.181 274.7);
Tailwind
colors: {
  custom: {
    50: '#7157b0',
    500: '#23158d',
    950: '#000000',
  },
}
SCSS
$custom: #23158d;
$custom-light: #7157b0;
$custom-dark: #000000;
JSON
{
  "hex": "#23158d",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 247,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32409,
    "c": 0.18079,
    "h": 274.7
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#23158D
secondary
#B1C13D
accent
#F137DB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #23158D

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

Preview Lab → · Contrast checker → · Palette generator →

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