#23158F#23158F

#23158F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.183 H 274.4°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#23158F
RGBrgb(35, 21, 143)
HSLhsl(247, 74%, 32%)
HSVhsv(247, 85%, 56%)
CMYKcmyk(75.5%, 85.3%, 0%, 43.9%)
CIE-LABlab(19.54, 44.98, -63.16)
CIE-LCHlch(19.54, 77.54, 305.46°)
OKLaboklab(32.65% 0.0142 -0.1826)
OKLCHoklch(32.65% 0.183 274.4)
XYZxyz(5.9176, 2.8762, 26.2246)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23158F #818F15
analogous
#15448F #23158F #60158F
triadic
#23158F #8F2315 #158F23
tetradic
#23158F #8F1544 #818F15 #158F60
square
#23158F #8F1544 #818F15 #158F60
split-complementary
#23158F #8F6015 #448F15
monochromatic
#090524 #160D5A #23158F #301DC4 #4F3CE2

Accessibility & contrast

On white

13.33
#23158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#23158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23158F
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23158F#FFFFFF#000000##FFFFFF
##23158F1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23158f;
/* rgb */ color: rgb(35, 21, 143);
/* oklch */ color: oklch(32.7% 0.183 274.4);
Tailwind
colors: {
  custom: {
    50: '#7257b1',
    500: '#23158f',
    950: '#000000',
  },
}
SCSS
$custom: #23158f;
$custom-light: #7257b1;
$custom-dark: #000000;
JSON
{
  "hex": "#23158f",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 246.885,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32652,
    "c": 0.18315,
    "h": 274.4
  },
  "luminance": 0.02877
}

Semantic roles & 50–950 ramp

primary
#23158F
secondary
#B3C23E
accent
#F137DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #23158F

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

Preview Lab → · Contrast checker → · Palette generator →

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