#23186C#23186C

#23186C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.137 H 279.5°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#23186C
RGBrgb(35, 24, 108)
HSLhsl(248, 64%, 26%)
HSVhsv(248, 78%, 42%)
CMYKcmyk(67.6%, 77.8%, 0%, 57.6%)
CIE-LABlab(15.97, 32.05, -46.76)
CIE-LCHlch(15.97, 56.69, 304.43°)
OKLaboklab(28.96% 0.0225 -0.135)
OKLCHoklch(28.96% 0.137 279.5)
XYZxyz(3.7257, 2.0930, 14.3921)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23186C #616C18
analogous
#18376C #23186C #4D186C
triadic
#23186C #6C2318 #186C23
tetradic
#23186C #6C1837 #616C18 #186C4D
square
#23186C #6C1837 #616C18 #186C4D
split-complementary
#23186C #6C4D18 #376C18
monochromatic
#080619 #130D3A #23186C #33239E #432ED0

Accessibility & contrast

On white

14.80
#23186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#23186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23186C
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23186C#FFFFFF#000000##FFFFFF
##23186C1.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #23186c;
/* rgb */ color: rgb(35, 24, 108);
/* oklch */ color: oklch(29.0% 0.137 279.5);
Tailwind
colors: {
  custom: {
    50: '#695797',
    500: '#23186c',
    950: '#000000',
  },
}
SCSS
$custom: #23186c;
$custom-light: #695797;
$custom-dark: #000000;
JSON
{
  "hex": "#23186c",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 247.857,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28957,
    "c": 0.13684,
    "h": 279.5
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#23186C
secondary
#95A23E
accent
#E741D1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #23186C

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

Preview Lab → · Contrast checker → · Palette generator →

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