#23157C#23157C

#23157C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.160 H 277.1°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#23157C
RGBrgb(35, 21, 124)
HSLhsl(248, 71%, 28%)
HSVhsv(248, 83%, 49%)
CMYKcmyk(71.8%, 83.1%, 0%, 51.4%)
CIE-LABlab(17.22, 39.00, -55.03)
CIE-LCHlch(17.22, 67.45, 305.33°)
OKLaboklab(30.37% 0.0198 -0.159)
OKLCHoklch(30.37% 0.16 277.1)
XYZxyz(4.5982, 2.3485, 19.2759)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23157C #6E7C15
analogous
#153A7C #23157C #56157C
triadic
#23157C #7C2315 #157C23
tetradic
#23157C #7C153A #6E7C15 #157C56
square
#23157C #7C153A #6E7C15 #157C56
split-complementary
#23157C #7C5615 #3A7C15
monochromatic
#07041A #140C48 #23157C #321EB0 #4730DC

Accessibility & contrast

On white

14.29
#23157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23157C
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23157C#FFFFFF#000000##FFFFFF
##23157C1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #23157c;
/* rgb */ color: rgb(35, 21, 124);
/* oklch */ color: oklch(30.4% 0.160 277.1);
Tailwind
colors: {
  custom: {
    50: '#6d56a3',
    500: '#23157c',
    950: '#000000',
  },
}
SCSS
$custom: #23157c;
$custom-light: #6d56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#23157c",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 248.155,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30374,
    "c": 0.16024,
    "h": 277.1
  },
  "luminance": 0.02349
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23157C

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

Preview Lab → · Contrast checker → · Palette generator →

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