#23118C#23118C

#23118C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.182 H 275.1°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#23118C
RGBrgb(35, 17, 140)
HSLhsl(249, 78%, 31%)
HSVhsv(249, 88%, 55%)
CMYKcmyk(75%, 87.9%, 0%, 45.1%)
CIE-LABlab(18.59, 45.77, -62.87)
CIE-LCHlch(18.59, 77.76, 306.06°)
OKLaboklab(31.89% 0.0163 -0.1817)
OKLCHoklch(31.89% 0.182 275.1)
XYZxyz(5.6257, 2.6511, 25.0211)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23118C #7A8C11
analogous
#113D8C #23118C #60118C
triadic
#23118C #8C2311 #118C23
tetradic
#23118C #8C113D #7A8C11 #118C60
square
#23118C #8C113D #7A8C11 #118C60
split-complementary
#23118C #8C6011 #3D8C11
monochromatic
#08041F #150A55 #23118C #3118C3 #4C31E6

Accessibility & contrast

On white

13.72
#23118C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#23118C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23118C
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23118C#FFFFFF#000000##FFFFFF
##23118C1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #23118c;
/* rgb */ color: rgb(35, 17, 140);
/* oklch */ color: oklch(31.9% 0.182 275.1);
Tailwind
colors: {
  custom: {
    50: '#7155af',
    500: '#23118c',
    950: '#000000',
  },
}
SCSS
$custom: #23118c;
$custom-light: #7155af;
$custom-dark: #000000;
JSON
{
  "hex": "#23118c",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 248.78,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3189,
    "c": 0.18241,
    "h": 275.1
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#23118C
secondary
#ADC138
accent
#F533D8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #23118C

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

Preview Lab → · Contrast checker → · Palette generator →

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