#23167E#23167E

#23167E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.162 H 276.7°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#23167E
RGBrgb(35, 22, 126)
HSLhsl(248, 70%, 29%)
HSVhsv(248, 83%, 49%)
CMYKcmyk(72.2%, 82.5%, 0%, 50.6%)
CIE-LABlab(17.63, 39.14, -55.62)
CIE-LCHlch(17.63, 68.01, 305.13°)
OKLaboklab(30.73% 0.0188 -0.1607)
OKLCHoklch(30.73% 0.162 276.7)
XYZxyz(4.7447, 2.4371, 19.9550)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23167E #717E16
analogous
#163D7E #23167E #57167E
triadic
#23167E #7E2316 #167E23
tetradic
#23167E #7E163D #717E16 #167E57
square
#23167E #7E163D #717E16 #167E57
split-complementary
#23167E #7E5716 #3D7E16
monochromatic
#07051A #150D4A #23167E #311FB2 #4833DB

Accessibility & contrast

On white

14.12
#23167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#23167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23167E
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23167E#FFFFFF#000000##FFFFFF
##23167E1.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #23167e;
/* rgb */ color: rgb(35, 22, 126);
/* oklch */ color: oklch(30.7% 0.162 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e57a5',
    500: '#23167e',
    950: '#000000',
  },
}
SCSS
$custom: #23167e;
$custom-light: #6e57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23167e",
  "rgb": {
    "r": 35,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 247.5,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3073,
    "c": 0.16184,
    "h": 276.7
  },
  "luminance": 0.02438
}

Semantic roles & 50–950 ramp

primary
#23167E
secondary
#A4B33D
accent
#ED3BD7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23167E

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

Preview Lab → · Contrast checker → · Palette generator →

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