#23138F#23138F

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

Color values

HEX#23138F
RGBrgb(35, 19, 143)
HSLhsl(248, 77%, 32%)
HSVhsv(248, 87%, 56%)
CMYKcmyk(75.5%, 86.7%, 0%, 43.9%)
CIE-LABlab(19.25, 45.85, -63.65)
CIE-LCHlch(19.25, 78.44, 305.77°)
OKLaboklab(32.45% 0.0147 -0.184)
OKLCHoklch(32.45% 0.185 274.6)
XYZxyz(5.8823, 2.8056, 26.2128)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23138F #7F8F13
analogous
#13418F #23138F #61138F
triadic
#23138F #8F2313 #138F23
tetradic
#23138F #8F1341 #7F8F13 #138F61
square
#23138F #8F1341 #7F8F13 #138F61
split-complementary
#23138F #8F6113 #418F13
monochromatic
#090523 #160C59 #23138F #301AC5 #4E38E5

Accessibility & contrast

On white

13.45
#23138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23138F
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23138F#FFFFFF#000000##FFFFFF
##23138F1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23138f;
/* rgb */ color: rgb(35, 19, 143);
/* oklch */ color: oklch(32.5% 0.185 274.6);
Tailwind
colors: {
  custom: {
    50: '#7256b1',
    500: '#23138f',
    950: '#000000',
  },
}
SCSS
$custom: #23138f;
$custom-light: #7256b1;
$custom-dark: #000000;
JSON
{
  "hex": "#23138f",
  "rgb": {
    "r": 35,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 247.742,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32451,
    "c": 0.18457,
    "h": 274.6
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#23138F
secondary
#B1C33B
accent
#F335DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #23138F

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

Preview Lab → · Contrast checker → · Palette generator →

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