#23167B#23167B

#23167B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.158 H 277.1°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#23167B
RGBrgb(35, 22, 123)
HSLhsl(248, 70%, 28%)
HSVhsv(248, 82%, 48%)
CMYKcmyk(71.5%, 82.1%, 0%, 51.8%)
CIE-LABlab(17.28, 38.17, -54.29)
CIE-LCHlch(17.28, 66.36, 305.11°)
OKLaboklab(30.38% 0.0197 -0.1569)
OKLCHoklch(30.38% 0.158 277.1)
XYZxyz(4.5540, 2.3608, 18.9507)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23167B #6E7B16
analogous
#163B7B #23167B #55167B
triadic
#23167B #7B2316 #167B23
tetradic
#23167B #7B163B #6E7B16 #167B55
square
#23167B #7B163B #6E7B16 #167B55
split-complementary
#23167B #7B5516 #3B7B16
monochromatic
#07051A #140D47 #23167B #321FAF #4731DA

Accessibility & contrast

On white

14.26
#23167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#23167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23167B
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23167B#FFFFFF#000000##FFFFFF
##23167B1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #23167b;
/* rgb */ color: rgb(35, 22, 123);
/* oklch */ color: oklch(30.4% 0.158 277.1);
Tailwind
colors: {
  custom: {
    50: '#6d56a2',
    500: '#23167b',
    950: '#000000',
  },
}
SCSS
$custom: #23167b;
$custom-light: #6d56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#23167b",
  "rgb": {
    "r": 35,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 247.723,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30379,
    "c": 0.15812,
    "h": 277.1
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#23167B
secondary
#A1B03D
accent
#EC3BD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #23167B

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

Preview Lab → · Contrast checker → · Palette generator →

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