#23187F#23187F

#23187F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.161 H 276.2°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#23187F
RGBrgb(35, 24, 127)
HSLhsl(246, 68%, 30%)
HSVhsv(246, 81%, 50%)
CMYKcmyk(72.4%, 81.1%, 0%, 50.2%)
CIE-LABlab(18.11, 38.42, -55.46)
CIE-LCHlch(18.11, 67.47, 304.71°)
OKLaboklab(31.1% 0.0176 -0.1603)
OKLCHoklch(31.1% 0.161 276.2)
XYZxyz(4.8493, 2.5424, 20.3097)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23187F #747F18
analogous
#18407F #23187F #57187F
triadic
#23187F #7F2318 #187F23
tetradic
#23187F #7F1840 #747F18 #187F57
square
#23187F #7F1840 #747F18 #187F57
split-complementary
#23187F #7F5718 #407F18
monochromatic
#07051A #150E4C #23187F #3122B2 #4938D9

Accessibility & contrast

On white

13.92
#23187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#23187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23187F
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23187F#FFFFFF#000000##FFFFFF
##23187F1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #23187f;
/* rgb */ color: rgb(35, 24, 127);
/* oklch */ color: oklch(31.1% 0.161 276.2);
Tailwind
colors: {
  custom: {
    50: '#6e58a5',
    500: '#23187f',
    950: '#000000',
  },
}
SCSS
$custom: #23187f;
$custom-light: #6e58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23187f",
  "rgb": {
    "r": 35,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 246.408,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31098,
    "c": 0.16128,
    "h": 276.2
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#23187F
secondary
#A7B33F
accent
#EB3DD8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23187F

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

Preview Lab → · Contrast checker → · Palette generator →

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