#23128F#23128F

#23128F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.185 H 274.6°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#23128F
RGBrgb(35, 18, 143)
HSLhsl(248, 78%, 32%)
HSVhsv(248, 87%, 56%)
CMYKcmyk(75.5%, 87.4%, 0%, 43.9%)
CIE-LABlab(19.11, 46.26, -63.88)
CIE-LCHlch(19.11, 78.87, 305.91°)
OKLaboklab(32.36% 0.015 -0.1846)
OKLCHoklch(32.36% 0.185 274.6)
XYZxyz(5.8657, 2.7725, 26.2073)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23128F #7E8F12
analogous
#12408F #23128F #62128F
triadic
#23128F #8F2312 #128F23
tetradic
#23128F #8F1240 #7E8F12 #128F62
square
#23128F #8F1240 #7E8F12 #128F62
split-complementary
#23128F #8F6212 #408F12
monochromatic
#080422 #160B59 #23128F #3019C5 #4E36E6

Accessibility & contrast

On white

13.51
#23128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23128F
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23128F#FFFFFF#000000##FFFFFF
##23128F1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #23128f;
/* rgb */ color: rgb(35, 18, 143);
/* oklch */ color: oklch(32.4% 0.185 274.6);
Tailwind
colors: {
  custom: {
    50: '#7256b1',
    500: '#23128f',
    950: '#000000',
  },
}
SCSS
$custom: #23128f;
$custom-light: #7256b1;
$custom-dark: #000000;
JSON
{
  "hex": "#23128f",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 248.16,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32355,
    "c": 0.18524,
    "h": 274.6
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23128F

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

Preview Lab → · Contrast checker → · Palette generator →

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