#23197F#23197F

#23197F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.160 H 276.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#23197F
RGBrgb(35, 25, 127)
HSLhsl(246, 67%, 30%)
HSVhsv(246, 80%, 50%)
CMYKcmyk(72.4%, 80.3%, 0%, 50.2%)
CIE-LABlab(18.30, 37.89, -55.16)
CIE-LCHlch(18.30, 66.91, 304.48°)
OKLaboklab(31.23% 0.0171 -0.1594)
OKLCHoklch(31.23% 0.16 276.1)
XYZxyz(4.8703, 2.5844, 20.3167)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23197F #757F19
analogous
#19427F #23197F #56197F
triadic
#23197F #7F2319 #197F23
tetradic
#23197F #7F1942 #757F19 #197F56
square
#23197F #7F1942 #757F19 #197F56
split-complementary
#23197F #7F5619 #427F19
monochromatic
#07051A #150F4C #23197F #3123B2 #4A3AD8

Accessibility & contrast

On white

13.84
#23197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#23197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23197F
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23197F#FFFFFF#000000##FFFFFF
##23197F1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23197f;
/* rgb */ color: rgb(35, 25, 127);
/* oklch */ color: oklch(31.2% 0.160 276.1);
Tailwind
colors: {
  custom: {
    50: '#6d58a5',
    500: '#23197f',
    950: '#000000',
  },
}
SCSS
$custom: #23197f;
$custom-light: #6d58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23197f",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 245.882,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31228,
    "c": 0.16035,
    "h": 276.1
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23197F

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

Preview Lab → · Contrast checker → · Palette generator →

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