#23197E#23197E

#23197E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.159 H 276.3°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#23197E
RGBrgb(35, 25, 126)
HSLhsl(246, 67%, 30%)
HSVhsv(246, 80%, 49%)
CMYKcmyk(72.2%, 80.2%, 0%, 50.6%)
CIE-LABlab(18.18, 37.55, -54.71)
CIE-LCHlch(18.18, 66.36, 304.47°)
OKLaboklab(31.11% 0.0173 -0.1581)
OKLCHoklch(31.11% 0.159 276.3)
XYZxyz(4.8054, 2.5585, 19.9752)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23197E #747E19
analogous
#19417E #23197E #56197E
triadic
#23197E #7E2319 #197E23
tetradic
#23197E #7E1941 #747E19 #197E56
square
#23197E #7E1941 #747E19 #197E56
split-complementary
#23197E #7E5619 #417E19
monochromatic
#07051A #150F4B #23197E #3123B1 #493AD8

Accessibility & contrast

On white

13.89
#23197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#23197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23197E
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23197E#FFFFFF#000000##FFFFFF
##23197E1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23197e;
/* rgb */ color: rgb(35, 25, 126);
/* oklch */ color: oklch(31.1% 0.159 276.3);
Tailwind
colors: {
  custom: {
    50: '#6d58a5',
    500: '#23197e',
    950: '#000000',
  },
}
SCSS
$custom: #23197e;
$custom-light: #6d58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23197e",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 245.941,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31114,
    "c": 0.15909,
    "h": 276.3
  },
  "luminance": 0.02559
}

Semantic roles & 50–950 ramp

primary
#23197E
secondary
#A7B241
accent
#EA3ED9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23197E

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

Preview Lab → · Contrast checker → · Palette generator →

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