#23197D#23197D

#23197D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.158 H 276.4°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#23197D
RGBrgb(35, 25, 125)
HSLhsl(246, 67%, 29%)
HSVhsv(246, 80%, 49%)
CMYKcmyk(72%, 80%, 0%, 51%)
CIE-LABlab(18.07, 37.22, -54.26)
CIE-LCHlch(18.07, 65.80, 304.45°)
OKLaboklab(31% 0.0176 -0.1568)
OKLCHoklch(31% 0.158 276.4)
XYZxyz(4.7412, 2.5328, 19.6371)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23197D #737D19
analogous
#19417D #23197D #55197D
triadic
#23197D #7D2319 #197D23
tetradic
#23197D #7D1941 #737D19 #197D55
square
#23197D #7D1941 #737D19 #197D55
split-complementary
#23197D #7D5519 #417D19
monochromatic
#07051A #150F4A #23197D #3123B0 #4939D7

Accessibility & contrast

On white

13.94
#23197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23197D
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23197D#FFFFFF#000000##FFFFFF
##23197D1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #23197d;
/* rgb */ color: rgb(35, 25, 125);
/* oklch */ color: oklch(31.0% 0.158 276.4);
Tailwind
colors: {
  custom: {
    50: '#6d58a4',
    500: '#23197d',
    950: '#000000',
  },
}
SCSS
$custom: #23197d;
$custom-light: #6d58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#23197d",
  "rgb": {
    "r": 35,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 246,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30999,
    "c": 0.15782,
    "h": 276.4
  },
  "luminance": 0.02533
}

Semantic roles & 50–950 ramp

primary
#23197D
secondary
#A6B140
accent
#EA3ED8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23197D

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

Preview Lab → · Contrast checker → · Palette generator →

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