#23127D#23127D

#23127D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.164 H 277.3°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#23127D
RGBrgb(35, 18, 125)
HSLhsl(250, 75%, 28%)
HSVhsv(250, 86%, 49%)
CMYKcmyk(72%, 85.6%, 0%, 51%)
CIE-LABlab(16.85, 40.77, -56.28)
CIE-LCHlch(16.85, 69.50, 305.92°)
OKLaboklab(30.15% 0.0208 -0.1626)
OKLCHoklch(30.15% 0.164 277.3)
XYZxyz(4.6099, 2.2702, 19.5933)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23127D #6C7D12
analogous
#12367D #23127D #58127D
triadic
#23127D #7D2312 #127D23
tetradic
#23127D #7D1236 #6C7D12 #127D58
square
#23127D #7D1236 #6C7D12 #127D58
split-complementary
#23127D #7D5812 #367D12
monochromatic
#07041B #140A48 #23127D #321AB2 #4629E0

Accessibility & contrast

On white

14.44
#23127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#23127D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23127D
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23127D#FFFFFF#000000##FFFFFF
##23127D1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #23127d;
/* rgb */ color: rgb(35, 18, 125);
/* oklch */ color: oklch(30.2% 0.164 277.3);
Tailwind
colors: {
  custom: {
    50: '#6e54a4',
    500: '#23127d',
    950: '#000000',
  },
}
SCSS
$custom: #23127d;
$custom-light: #6e54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#23127d",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 249.533,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30151,
    "c": 0.16394,
    "h": 277.3
  },
  "luminance": 0.02271
}

Semantic roles & 50–950 ramp

primary
#23127D
secondary
#9FB338
accent
#F136D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23127D

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

Preview Lab → · Contrast checker → · Palette generator →

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