#23128A#23128A

#23128A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.179 H 275.3°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#23128A
RGBrgb(35, 18, 138)
HSLhsl(249, 77%, 31%)
HSVhsv(249, 87%, 54%)
CMYKcmyk(74.6%, 87%, 0%, 45.9%)
CIE-LABlab(18.47, 44.75, -61.81)
CIE-LCHlch(18.47, 76.31, 305.91°)
OKLaboklab(31.74% 0.0166 -0.1786)
OKLCHoklch(31.74% 0.179 275.3)
XYZxyz(5.4954, 2.6244, 24.2568)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23128A #798A12
analogous
#123D8A #23128A #5F128A
triadic
#23128A #8A2312 #128A23
tetradic
#23128A #8A123D #798A12 #128A5F
square
#23128A #8A123D #798A12 #128A5F
split-complementary
#23128A #8A5F12 #3D8A12
monochromatic
#08041E #150B54 #23128A #3119C0 #4B32E4

Accessibility & contrast

On white

13.77
#23128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#23128A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23128A
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23128A#FFFFFF#000000##FFFFFF
##23128A1.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #23128a;
/* rgb */ color: rgb(35, 18, 138);
/* oklch */ color: oklch(31.7% 0.179 275.3);
Tailwind
colors: {
  custom: {
    50: '#7156ad',
    500: '#23128a',
    950: '#000000',
  },
}
SCSS
$custom: #23128a;
$custom-light: #7156ad;
$custom-dark: #000000;
JSON
{
  "hex": "#23128a",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 248.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31737,
    "c": 0.1794,
    "h": 275.3
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#23128A
secondary
#ACBF39
accent
#F334D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #23128A

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

Preview Lab → · Contrast checker → · Palette generator →

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