#23157B#23157B

#23157B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.159 H 277.3°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#23157B
RGBrgb(35, 21, 123)
HSLhsl(248, 71%, 28%)
HSVhsv(248, 83%, 48%)
CMYKcmyk(71.5%, 82.9%, 0%, 51.8%)
CIE-LABlab(17.10, 38.68, -54.58)
CIE-LCHlch(17.10, 66.90, 305.32°)
OKLaboklab(30.26% 0.0201 -0.1577)
OKLCHoklch(30.26% 0.159 277.3)
XYZxyz(4.5353, 2.3233, 18.9445)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23157B #6D7B15
analogous
#153A7B #23157B #56157B
triadic
#23157B #7B2315 #157B23
tetradic
#23157B #7B153A #6D7B15 #157B56
square
#23157B #7B153A #6D7B15 #157B56
split-complementary
#23157B #7B5615 #3A7B15
monochromatic
#07041A #140C47 #23157B #321EAF #472FDB

Accessibility & contrast

On white

14.34
#23157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23157B
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23157B#FFFFFF#000000##FFFFFF
##23157B1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23157b;
/* rgb */ color: rgb(35, 21, 123);
/* oklch */ color: oklch(30.3% 0.159 277.3);
Tailwind
colors: {
  custom: {
    50: '#6d56a2',
    500: '#23157b',
    950: '#000000',
  },
}
SCSS
$custom: #23157b;
$custom-light: #6d56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#23157b",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 248.235,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30256,
    "c": 0.15901,
    "h": 277.3
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#23157B
secondary
#A0B03B
accent
#EE3AD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23157B

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

Preview Lab → · Contrast checker → · Palette generator →

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