#23127B#23127B

#23127B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.162 H 277.6°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#23127B
RGBrgb(35, 18, 123)
HSLhsl(250, 74%, 28%)
HSVhsv(250, 85%, 48%)
CMYKcmyk(71.5%, 85.4%, 0%, 51.8%)
CIE-LABlab(16.60, 40.14, -55.41)
CIE-LCHlch(16.60, 68.42, 305.92°)
OKLaboklab(29.91% 0.0215 -0.1601)
OKLCHoklch(29.91% 0.162 277.6)
XYZxyz(4.4834, 2.2196, 18.9272)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23127B #6A7B12
analogous
#12367B #23127B #57127B
triadic
#23127B #7B2312 #127B23
tetradic
#23127B #7B1236 #6A7B12 #127B57
square
#23127B #7B1236 #6A7B12 #127B57
split-complementary
#23127B #7B5712 #367B12
monochromatic
#08041B #140A46 #23127B #321AB0 #4628E0

Accessibility & contrast

On white

14.54
#23127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#23127B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23127B
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23127B#FFFFFF#000000##FFFFFF
##23127B1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #23127b;
/* rgb */ color: rgb(35, 18, 123);
/* oklch */ color: oklch(29.9% 0.162 277.6);
Tailwind
colors: {
  custom: {
    50: '#6d54a2',
    500: '#23127b',
    950: '#000000',
  },
}
SCSS
$custom: #23127b;
$custom-light: #6d54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#23127b",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 249.714,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.2991,
    "c": 0.16151,
    "h": 277.6
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23127B

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

Preview Lab → · Contrast checker → · Palette generator →

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