#23138C#23138C

#23138C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.181 H 275.0°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#23138C
RGBrgb(35, 19, 140)
HSLhsl(248, 76%, 31%)
HSVhsv(248, 86%, 55%)
CMYKcmyk(75%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.87, 44.93, -62.40)
CIE-LCHlch(18.87, 76.90, 305.76°)
OKLaboklab(32.08% 0.0157 -0.1804)
OKLCHoklch(32.08% 0.181 275)
XYZxyz(5.6581, 2.7160, 25.0319)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23138C #7C8C13
analogous
#133F8C #23138C #5F138C
triadic
#23138C #8C2313 #138C23
tetradic
#23138C #8C133F #7C8C13 #138C5F
square
#23138C #8C133F #7C8C13 #138C5F
split-complementary
#23138C #8C5F13 #3F8C13
monochromatic
#080420 #160C56 #23138C #301AC2 #4D36E4

Accessibility & contrast

On white

13.61
#23138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#23138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23138C
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23138C#FFFFFF#000000##FFFFFF
##23138C1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #23138c;
/* rgb */ color: rgb(35, 19, 140);
/* oklch */ color: oklch(32.1% 0.181 275.0);
Tailwind
colors: {
  custom: {
    50: '#7156af',
    500: '#23138c',
    950: '#000000',
  },
}
SCSS
$custom: #23138c;
$custom-light: #7156af;
$custom-dark: #000000;
JSON
{
  "hex": "#23138c",
  "rgb": {
    "r": 35,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 247.934,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32082,
    "c": 0.18106,
    "h": 275
  },
  "luminance": 0.02717
}

Semantic roles & 50–950 ramp

primary
#23138C
secondary
#AFC03B
accent
#F335DA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #23138C

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

Preview Lab → · Contrast checker → · Palette generator →

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