#23158C#23158C

#23158C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.180 H 274.8°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#23158C
RGBrgb(35, 21, 140)
HSLhsl(247, 74%, 32%)
HSVhsv(247, 85%, 55%)
CMYKcmyk(75%, 85%, 0%, 45.1%)
CIE-LABlab(19.17, 44.05, -61.91)
CIE-LCHlch(19.17, 75.98, 305.43°)
OKLaboklab(32.29% 0.015 -0.179)
OKLCHoklch(32.29% 0.18 274.8)
XYZxyz(5.6934, 2.7865, 25.0437)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23158C #7E8C15
analogous
#15438C #23158C #5F158C
triadic
#23158C #8C2315 #158C23
tetradic
#23158C #8C1543 #7E8C15 #158C5F
square
#23158C #8C1543 #7E8C15 #158C5F
split-complementary
#23158C #8C5F15 #438C15
monochromatic
#080522 #160D57 #23158C #301DC1 #4E3AE1

Accessibility & contrast

On white

13.48
#23158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23158C
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23158C#FFFFFF#000000##FFFFFF
##23158C1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #23158c;
/* rgb */ color: rgb(35, 21, 140);
/* oklch */ color: oklch(32.3% 0.180 274.8);
Tailwind
colors: {
  custom: {
    50: '#7157af',
    500: '#23158c',
    950: '#000000',
  },
}
SCSS
$custom: #23158c;
$custom-light: #7157af;
$custom-dark: #000000;
JSON
{
  "hex": "#23158c",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 247.059,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32287,
    "c": 0.1796,
    "h": 274.8
  },
  "luminance": 0.02787
}

Semantic roles & 50–950 ramp

primary
#23158C
secondary
#B0C03D
accent
#F137DB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #23158C

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

Preview Lab → · Contrast checker → · Palette generator →

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