#23158A#23158A

#23158A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.177 H 275.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#23158A
RGBrgb(35, 21, 138)
HSLhsl(247, 74%, 31%)
HSVhsv(247, 85%, 54%)
CMYKcmyk(74.6%, 84.8%, 0%, 45.9%)
CIE-LABlab(18.92, 43.43, -61.06)
CIE-LCHlch(18.92, 74.93, 305.42°)
OKLaboklab(32.05% 0.0156 -0.1765)
OKLCHoklch(32.05% 0.177 275.1)
XYZxyz(5.5472, 2.7281, 24.2741)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23158A #7C8A15
analogous
#15418A #23158A #5D158A
triadic
#23158A #8A2315 #158A23
tetradic
#23158A #8A1541 #7C8A15 #158A5D
square
#23158A #8A1541 #7C8A15 #158A5D
split-complementary
#23158A #8A5D15 #418A15
monochromatic
#080520 #160D55 #23158A #301DBF #4D39E1

Accessibility & contrast

On white

13.59
#23158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#23158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23158A
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23158A#FFFFFF#000000##FFFFFF
##23158A1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #23158a;
/* rgb */ color: rgb(35, 21, 138);
/* oklch */ color: oklch(32.0% 0.177 275.1);
Tailwind
colors: {
  custom: {
    50: '#7157ad',
    500: '#23158a',
    950: '#000000',
  },
}
SCSS
$custom: #23158a;
$custom-light: #7157ad;
$custom-dark: #000000;
JSON
{
  "hex": "#23158a",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 247.179,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32045,
    "c": 0.17722,
    "h": 275.1
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#23158A
secondary
#AFBE3D
accent
#F038DA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #23158A

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

Preview Lab → · Contrast checker → · Palette generator →

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