#23157A#23157A

#23157A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.158 H 277.4°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#23157A
RGBrgb(35, 21, 122)
HSLhsl(248, 71%, 28%)
HSVhsv(248, 83%, 48%)
CMYKcmyk(71.3%, 82.8%, 0%, 52.2%)
CIE-LABlab(16.98, 38.36, -54.14)
CIE-LCHlch(16.98, 66.35, 305.32°)
OKLaboklab(30.14% 0.0204 -0.1564)
OKLCHoklch(30.14% 0.158 277.4)
XYZxyz(4.4730, 2.2984, 18.6165)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23157A #6C7A15
analogous
#15397A #23157A #55157A
triadic
#23157A #7A2315 #157A23
tetradic
#23157A #7A1539 #6C7A15 #157A55
square
#23157A #7A1539 #6C7A15 #157A55
split-complementary
#23157A #7A5515 #397A15
monochromatic
#07041A #140C46 #23157A #321EAE #462EDB

Accessibility & contrast

On white

14.39
#23157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#23157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23157A
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23157A#FFFFFF#000000##FFFFFF
##23157A1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #23157a;
/* rgb */ color: rgb(35, 21, 122);
/* oklch */ color: oklch(30.1% 0.158 277.4);
Tailwind
colors: {
  custom: {
    50: '#6d56a2',
    500: '#23157a',
    950: '#000000',
  },
}
SCSS
$custom: #23157a;
$custom-light: #6d56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#23157a",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 248.317,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30139,
    "c": 0.15777,
    "h": 277.4
  },
  "luminance": 0.02299
}

Semantic roles & 50–950 ramp

primary
#23157A
secondary
#9FAF3B
accent
#ED3AD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23157A

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

Preview Lab → · Contrast checker → · Palette generator →

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