#23128E#23128E

#23128E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.2% C 0.184 H 274.8°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#23128E
RGBrgb(35, 18, 142)
HSLhsl(248, 78%, 31%)
HSVhsv(248, 87%, 56%)
CMYKcmyk(75.4%, 87.3%, 0%, 44.3%)
CIE-LABlab(18.98, 45.96, -63.47)
CIE-LCHlch(18.98, 78.36, 305.91°)
OKLaboklab(32.23% 0.0153 -0.1834)
OKLCHoklch(32.23% 0.184 274.8)
XYZxyz(5.7903, 2.7423, 25.8101)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23128E #7D8E12
analogous
#123F8E #23128E #61128E
triadic
#23128E #8E2312 #128E23
tetradic
#23128E #8E123F #7D8E12 #128E61
square
#23128E #8E123F #7D8E12 #128E61
split-complementary
#23128E #8E6112 #3F8E12
monochromatic
#080421 #160B58 #23128E #3019C4 #4D35E5

Accessibility & contrast

On white

13.56
#23128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#23128E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23128E
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23128E#FFFFFF#000000##FFFFFF
##23128E1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #23128e;
/* rgb */ color: rgb(35, 18, 142);
/* oklch */ color: oklch(32.2% 0.184 274.8);
Tailwind
colors: {
  custom: {
    50: '#7256b0',
    500: '#23128e',
    950: '#000000',
  },
}
SCSS
$custom: #23128e;
$custom-light: #7256b0;
$custom-dark: #000000;
JSON
{
  "hex": "#23128e",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 248.226,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32231,
    "c": 0.18407,
    "h": 274.8
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#23128E
secondary
#AFC23A
accent
#F434DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #23128E

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

Preview Lab → · Contrast checker → · Palette generator →

#23128E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva