#23157E#23157E

#23157E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.163 H 276.8°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#23157E
RGBrgb(35, 21, 126)
HSLhsl(248, 71%, 29%)
HSVhsv(248, 83%, 49%)
CMYKcmyk(72.2%, 83.3%, 0%, 50.6%)
CIE-LABlab(17.46, 39.64, -55.91)
CIE-LCHlch(17.46, 68.53, 305.34°)
OKLaboklab(30.61% 0.0192 -0.1616)
OKLCHoklch(30.61% 0.163 276.8)
XYZxyz(4.7260, 2.3996, 19.9487)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23157E #707E15
analogous
#153C7E #23157E #58157E
triadic
#23157E #7E2315 #157E23
tetradic
#23157E #7E153C #707E15 #157E58
square
#23157E #7E153C #707E15 #157E58
split-complementary
#23157E #7E5815 #3C7E15
monochromatic
#07041A #140C4A #23157E #321EB2 #4831DD

Accessibility & contrast

On white

14.19
#23157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#23157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23157E
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23157E#FFFFFF#000000##FFFFFF
##23157E1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #23157e;
/* rgb */ color: rgb(35, 21, 126);
/* oklch */ color: oklch(30.6% 0.163 276.8);
Tailwind
colors: {
  custom: {
    50: '#6e56a5',
    500: '#23157e',
    950: '#000000',
  },
}
SCSS
$custom: #23157e;
$custom-light: #6e56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23157e",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 248,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3061,
    "c": 0.1627,
    "h": 276.8
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23157E

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

Preview Lab → · Contrast checker → · Palette generator →

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