#23157D#23157D

#23157D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.161 H 276.9°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#23157D
RGBrgb(35, 21, 125)
HSLhsl(248, 71%, 29%)
HSVhsv(248, 83%, 49%)
CMYKcmyk(72%, 83.2%, 0%, 51%)
CIE-LABlab(17.34, 39.32, -55.47)
CIE-LCHlch(17.34, 67.99, 305.34°)
OKLaboklab(30.49% 0.0195 -0.1603)
OKLCHoklch(30.49% 0.161 276.9)
XYZxyz(4.6618, 2.3739, 19.6106)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23157D #6F7D15
analogous
#153B7D #23157D #57157D
triadic
#23157D #7D2315 #157D23
tetradic
#23157D #7D153B #6F7D15 #157D57
square
#23157D #7D153B #6F7D15 #157D57
split-complementary
#23157D #7D5715 #3B7D15
monochromatic
#07041A #140C49 #23157D #321EB1 #4730DC

Accessibility & contrast

On white

14.24
#23157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#23157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23157D
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23157D#FFFFFF#000000##FFFFFF
##23157D1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #23157d;
/* rgb */ color: rgb(35, 21, 125);
/* oklch */ color: oklch(30.5% 0.161 276.9);
Tailwind
colors: {
  custom: {
    50: '#6d56a4',
    500: '#23157d',
    950: '#000000',
  },
}
SCSS
$custom: #23157d;
$custom-light: #6d56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#23157d",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 248.077,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30492,
    "c": 0.16148,
    "h": 276.9
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#23157D
secondary
#A2B23C
accent
#EE3AD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23157D

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

Preview Lab → · Contrast checker → · Palette generator →

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