#23168F#23168F

#23168F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.182 H 274.3°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#23168F
RGBrgb(35, 22, 143)
HSLhsl(246, 73%, 32%)
HSVhsv(246, 85%, 56%)
CMYKcmyk(75.5%, 84.6%, 0%, 43.9%)
CIE-LABlab(19.69, 44.52, -62.90)
CIE-LCHlch(19.69, 77.06, 305.29°)
OKLaboklab(32.76% 0.0138 -0.1819)
OKLCHoklch(32.76% 0.182 274.3)
XYZxyz(5.9363, 2.9137, 26.2308)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23168F #828F16
analogous
#16468F #23168F #5F168F
triadic
#23168F #8F2316 #168F23
tetradic
#23168F #8F1646 #828F16 #168F5F
square
#23168F #8F1646 #828F16 #168F5F
split-complementary
#23168F #8F5F16 #468F16
monochromatic
#090625 #160E5A #23168F #301EC4 #503EE1

Accessibility & contrast

On white

13.27
#23168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#23168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #23168F
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23168F#FFFFFF#000000##FFFFFF
##23168F1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #23168f;
/* rgb */ color: rgb(35, 22, 143);
/* oklch */ color: oklch(32.8% 0.182 274.3);
Tailwind
colors: {
  custom: {
    50: '#7258b1',
    500: '#23168f',
    950: '#000000',
  },
}
SCSS
$custom: #23168f;
$custom-light: #7258b1;
$custom-dark: #000000;
JSON
{
  "hex": "#23168f",
  "rgb": {
    "r": 35,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 246.446,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32758,
    "c": 0.18241,
    "h": 274.3
  },
  "luminance": 0.02914
}

Semantic roles & 50–950 ramp

primary
#23168F
secondary
#B3C13F
accent
#F038DC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #23168F

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

Preview Lab → · Contrast checker → · Palette generator →

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