#23157F#23157F

#23157F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.164 H 276.6°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#23157F
RGBrgb(35, 21, 127)
HSLhsl(248, 72%, 29%)
HSVhsv(248, 83%, 50%)
CMYKcmyk(72.4%, 83.5%, 0%, 50.2%)
CIE-LABlab(17.58, 39.96, -56.34)
CIE-LCHlch(17.58, 69.08, 305.35°)
OKLaboklab(30.73% 0.0189 -0.1628)
OKLCHoklch(30.73% 0.164 276.6)
XYZxyz(4.7908, 2.4255, 20.2903)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23157F #717F15
analogous
#153C7F #23157F #58157F
triadic
#23157F #7F2315 #157F23
tetradic
#23157F #7F153C #717F15 #157F58
square
#23157F #7F153C #717F15 #157F58
split-complementary
#23157F #7F5815 #3C7F15
monochromatic
#07041A #150C4A #23157F #311EB4 #4831DD

Accessibility & contrast

On white

14.14
#23157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#23157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23157F
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23157F#FFFFFF#000000##FFFFFF
##23157F1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #23157f;
/* rgb */ color: rgb(35, 21, 127);
/* oklch */ color: oklch(30.7% 0.164 276.6);
Tailwind
colors: {
  custom: {
    50: '#6e56a5',
    500: '#23157f',
    950: '#000000',
  },
}
SCSS
$custom: #23157f;
$custom-light: #6e56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23157f",
  "rgb": {
    "r": 35,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 247.925,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30728,
    "c": 0.16393,
    "h": 276.6
  },
  "luminance": 0.02426
}

Semantic roles & 50–950 ramp

primary
#23157F
secondary
#A4B43C
accent
#EE39D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23157F

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

Preview Lab → · Contrast checker → · Palette generator →

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