#23127F#23127F

#23127F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.166 H 277.0°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#23127F
RGBrgb(35, 18, 127)
HSLhsl(249, 75%, 28%)
HSVhsv(249, 86%, 50%)
CMYKcmyk(72.4%, 85.8%, 0%, 50.2%)
CIE-LABlab(17.09, 41.39, -57.15)
CIE-LCHlch(17.09, 70.56, 305.91°)
OKLaboklab(30.39% 0.0202 -0.1651)
OKLCHoklch(30.39% 0.166 277)
XYZxyz(4.7390, 2.3218, 20.2730)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23127F #6E7F12
analogous
#12377F #23127F #59127F
triadic
#23127F #7F2312 #127F23
tetradic
#23127F #7F1237 #6E7F12 #127F59
square
#23127F #7F1237 #6E7F12 #127F59
split-complementary
#23127F #7F5912 #377F12
monochromatic
#07041B #140A49 #23127F #321AB5 #472BE1

Accessibility & contrast

On white

14.34
#23127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#23127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23127F
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23127F#FFFFFF#000000##FFFFFF
##23127F1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #23127f;
/* rgb */ color: rgb(35, 18, 127);
/* oklch */ color: oklch(30.4% 0.166 277.0);
Tailwind
colors: {
  custom: {
    50: '#6e55a5',
    500: '#23127f',
    950: '#000000',
  },
}
SCSS
$custom: #23127f;
$custom-light: #6e55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23127f",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 249.358,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30393,
    "c": 0.16635,
    "h": 277
  },
  "luminance": 0.02322
}

Semantic roles & 50–950 ramp

primary
#23127F
secondary
#A1B538
accent
#F236D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23127F

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

Preview Lab → · Contrast checker → · Palette generator →

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