#23127C#23127C

#23127C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.163 H 277.5°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#23127C
RGBrgb(35, 18, 124)
HSLhsl(250, 75%, 28%)
HSVhsv(250, 85%, 49%)
CMYKcmyk(71.8%, 85.5%, 0%, 51.4%)
CIE-LABlab(16.72, 40.45, -55.85)
CIE-LCHlch(16.72, 68.96, 305.92°)
OKLaboklab(30.03% 0.0212 -0.1613)
OKLCHoklch(30.03% 0.163 277.5)
XYZxyz(4.5464, 2.2448, 19.2586)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23127C #6B7C12
analogous
#12367C #23127C #58127C
triadic
#23127C #7C2312 #127C23
tetradic
#23127C #7C1236 #6B7C12 #127C58
square
#23127C #7C1236 #6B7C12 #127C58
split-complementary
#23127C #7C5812 #367C12
monochromatic
#08041B #140A47 #23127C #321AB1 #4629E0

Accessibility & contrast

On white

14.49
#23127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23127C
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23127C#FFFFFF#000000##FFFFFF
##23127C1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #23127c;
/* rgb */ color: rgb(35, 18, 124);
/* oklch */ color: oklch(30.0% 0.163 277.5);
Tailwind
colors: {
  custom: {
    50: '#6d54a3',
    500: '#23127c',
    950: '#000000',
  },
}
SCSS
$custom: #23127c;
$custom-light: #6d54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#23127c",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 249.623,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30031,
    "c": 0.16273,
    "h": 277.5
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#23127C
secondary
#9EB238
accent
#F137D3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23127C

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

Preview Lab → · Contrast checker → · Palette generator →

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