#23118E#23118E

#23118E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.185 H 274.8°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#23118E
RGBrgb(35, 17, 142)
HSLhsl(249, 79%, 31%)
HSVhsv(249, 88%, 56%)
CMYKcmyk(75.4%, 88%, 0%, 44.3%)
CIE-LABlab(18.85, 46.36, -63.69)
CIE-LCHlch(18.85, 78.78, 306.05°)
OKLaboklab(32.14% 0.0156 -0.1841)
OKLCHoklch(32.14% 0.185 274.8)
XYZxyz(5.7745, 2.7106, 25.8048)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23118E #7C8E11
analogous
#113D8E #23118E #61118E
triadic
#23118E #8E2311 #118E23
tetradic
#23118E #8E113D #7C8E11 #118E61
square
#23118E #8E113D #7C8E11 #118E61
split-complementary
#23118E #8E6111 #3D8E11
monochromatic
#080421 #160A57 #23118E #3018C5 #4D33E7

Accessibility & contrast

On white

13.62
#23118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#23118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23118E
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23118E#FFFFFF#000000##FFFFFF
##23118E1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #23118e;
/* rgb */ color: rgb(35, 17, 142);
/* oklch */ color: oklch(32.1% 0.185 274.8);
Tailwind
colors: {
  custom: {
    50: '#7255b0',
    500: '#23118e',
    950: '#000000',
  },
}
SCSS
$custom: #23118e;
$custom-light: #7255b0;
$custom-dark: #000000;
JSON
{
  "hex": "#23118e",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 248.64,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32139,
    "c": 0.18473,
    "h": 274.8
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#23118E
secondary
#AFC238
accent
#F533D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #23118E

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

Preview Lab → · Contrast checker → · Palette generator →

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