#23138E#23138E

#23138E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.183 H 274.7°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#23138E
RGBrgb(35, 19, 142)
HSLhsl(248, 76%, 32%)
HSVhsv(248, 87%, 56%)
CMYKcmyk(75.4%, 86.6%, 0%, 44.3%)
CIE-LABlab(19.12, 45.54, -63.23)
CIE-LCHlch(19.12, 77.92, 305.76°)
OKLaboklab(32.33% 0.0151 -0.1828)
OKLCHoklch(32.33% 0.183 274.7)
XYZxyz(5.8069, 2.7755, 25.8156)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23138E #7E8E13
analogous
#13418E #23138E #61138E
triadic
#23138E #8E2313 #138E23
tetradic
#23138E #8E1341 #7E8E13 #138E61
square
#23138E #8E1341 #7E8E13 #138E61
split-complementary
#23138E #8E6113 #418E13
monochromatic
#080522 #160C58 #23138E #301AC4 #4E37E4

Accessibility & contrast

On white

13.50
#23138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#23138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23138E
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23138E#FFFFFF#000000##FFFFFF
##23138E1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #23138e;
/* rgb */ color: rgb(35, 19, 142);
/* oklch */ color: oklch(32.3% 0.183 274.7);
Tailwind
colors: {
  custom: {
    50: '#7256b0',
    500: '#23138e',
    950: '#000000',
  },
}
SCSS
$custom: #23138e;
$custom-light: #7256b0;
$custom-dark: #000000;
JSON
{
  "hex": "#23138e",
  "rgb": {
    "r": 35,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 247.805,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32327,
    "c": 0.1834,
    "h": 274.7
  },
  "luminance": 0.02776
}

Semantic roles & 50–950 ramp

primary
#23138E
secondary
#B0C23B
accent
#F335DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #23138E

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

Preview Lab → · Contrast checker → · Palette generator →

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