#23188C#23188C

#23188C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.177 H 274.5°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#23188C
RGBrgb(35, 24, 140)
HSLhsl(246, 71%, 32%)
HSVhsv(246, 83%, 55%)
CMYKcmyk(75%, 82.9%, 0%, 45.1%)
CIE-LABlab(19.65, 42.62, -61.10)
CIE-LCHlch(19.65, 74.50, 304.90°)
OKLaboklab(32.62% 0.014 -0.1767)
OKLCHoklch(32.62% 0.177 274.5)
XYZxyz(5.7518, 2.9035, 25.0632)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23188C #818C18
analogous
#18478C #23188C #5D188C
triadic
#23188C #8C2318 #188C23
tetradic
#23188C #8C1847 #818C18 #188C5D
square
#23188C #8C1847 #818C18 #188C5D
split-complementary
#23188C #8C5D18 #478C18
monochromatic
#090624 #160F58 #23188C #3021C0 #4F40DE

Accessibility & contrast

On white

13.28
#23188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#23188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23188C
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23188C#FFFFFF#000000##FFFFFF
##23188C1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #23188c;
/* rgb */ color: rgb(35, 24, 140);
/* oklch */ color: oklch(32.6% 0.177 274.5);
Tailwind
colors: {
  custom: {
    50: '#7159af',
    500: '#23188c',
    950: '#000000',
  },
}
SCSS
$custom: #23188c;
$custom-light: #7159af;
$custom-dark: #000000;
JSON
{
  "hex": "#23188c",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 245.69,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32623,
    "c": 0.17724,
    "h": 274.5
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#23188C
secondary
#B3BF41
accent
#ED3ADD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #23188C

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

Preview Lab → · Contrast checker → · Palette generator →

#23188C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva