#23187C#23187C

#23187C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.158 H 276.7°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#23187C
RGBrgb(35, 24, 124)
HSLhsl(247, 68%, 29%)
HSVhsv(247, 81%, 49%)
CMYKcmyk(71.8%, 80.6%, 0%, 51.4%)
CIE-LABlab(17.76, 37.43, -54.13)
CIE-LCHlch(17.76, 65.81, 304.67°)
OKLaboklab(30.75% 0.0184 -0.1564)
OKLCHoklch(30.75% 0.158 276.7)
XYZxyz(4.6567, 2.4654, 19.2953)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23187C #717C18
analogous
#183F7C #23187C #55187C
triadic
#23187C #7C2318 #187C23
tetradic
#23187C #7C183F #717C18 #187C55
square
#23187C #7C183F #717C18 #187C55
split-complementary
#23187C #7C5518 #3F7C18
monochromatic
#07051A #150E49 #23187C #3122AF #4836D8

Accessibility & contrast

On white

14.06
#23187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#23187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23187C
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23187C#FFFFFF#000000##FFFFFF
##23187C1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #23187c;
/* rgb */ color: rgb(35, 24, 124);
/* oklch */ color: oklch(30.8% 0.158 276.7);
Tailwind
colors: {
  custom: {
    50: '#6d57a3',
    500: '#23187c',
    950: '#000000',
  },
}
SCSS
$custom: #23187c;
$custom-light: #6d57a3;
$custom-dark: #000000;
JSON
{
  "hex": "#23187c",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 246.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30752,
    "c": 0.15751,
    "h": 276.7
  },
  "luminance": 0.02466
}

Semantic roles & 50–950 ramp

primary
#23187C
secondary
#A4B13F
accent
#EA3DD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23187C

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

Preview Lab → · Contrast checker → · Palette generator →

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