#23158E#23158E

#23158E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.5% C 0.182 H 274.6°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#23158E
RGBrgb(35, 21, 142)
HSLhsl(247, 74%, 32%)
HSVhsv(247, 85%, 56%)
CMYKcmyk(75.4%, 85.2%, 0%, 44.3%)
CIE-LABlab(19.42, 44.67, -62.74)
CIE-LCHlch(19.42, 77.02, 305.45°)
OKLaboklab(32.53% 0.0144 -0.1814)
OKLCHoklch(32.53% 0.182 274.6)
XYZxyz(5.8422, 2.8461, 25.8274)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23158E #808E15
analogous
#15448E #23158E #60158E
triadic
#23158E #8E2315 #158E23
tetradic
#23158E #8E1544 #808E15 #158E60
square
#23158E #8E1544 #808E15 #158E60
split-complementary
#23158E #8E6015 #448E15
monochromatic
#090523 #160D59 #23158E #301DC3 #4F3BE2

Accessibility & contrast

On white

13.38
#23158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#23158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23158E
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23158E#FFFFFF#000000##FFFFFF
##23158E1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23158e;
/* rgb */ color: rgb(35, 21, 142);
/* oklch */ color: oklch(32.5% 0.182 274.6);
Tailwind
colors: {
  custom: {
    50: '#7257b0',
    500: '#23158e',
    950: '#000000',
  },
}
SCSS
$custom: #23158e;
$custom-light: #7257b0;
$custom-dark: #000000;
JSON
{
  "hex": "#23158e",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 246.942,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3253,
    "c": 0.18197,
    "h": 274.6
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23158E

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

Preview Lab → · Contrast checker → · Palette generator →

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