#23167F#23167F

#23167F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.163 H 276.5°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#23167F
RGBrgb(35, 22, 127)
HSLhsl(247, 70%, 29%)
HSVhsv(247, 83%, 50%)
CMYKcmyk(72.4%, 82.7%, 0%, 50.2%)
CIE-LABlab(17.75, 39.46, -56.06)
CIE-LCHlch(17.75, 68.55, 305.14°)
OKLaboklab(30.85% 0.0185 -0.162)
OKLCHoklch(30.85% 0.163 276.5)
XYZxyz(4.8096, 2.4630, 20.2965)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23167F #727F16
analogous
#163D7F #23167F #58167F
triadic
#23167F #7F2316 #167F23
tetradic
#23167F #7F163D #727F16 #167F58
square
#23167F #7F163D #727F16 #167F58
split-complementary
#23167F #7F5816 #3D7F16
monochromatic
#07051A #150D4B #23167F #311FB3 #4834DC

Accessibility & contrast

On white

14.07
#23167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #23167F
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23167F#FFFFFF#000000##FFFFFF
##23167F1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #23167f;
/* rgb */ color: rgb(35, 22, 127);
/* oklch */ color: oklch(30.8% 0.163 276.5);
Tailwind
colors: {
  custom: {
    50: '#6e57a5',
    500: '#23167f',
    950: '#000000',
  },
}
SCSS
$custom: #23167f;
$custom-light: #6e57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#23167f",
  "rgb": {
    "r": 35,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 247.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30848,
    "c": 0.16307,
    "h": 276.5
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #23167F

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

Preview Lab → · Contrast checker → · Palette generator →

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