#172143#172143

#172143 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.9% C 0.065 H 269.1°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#172143
RGBrgb(23, 33, 67)
HSLhsl(226, 49%, 18%)
HSVhsv(226, 66%, 26%)
CMYKcmyk(65.7%, 50.7%, 0%, 73.7%)
CIE-LABlab(13.68, 8.01, -22.90)
CIE-LCHlch(13.68, 24.26, 289.27°)
OKLaboklab(25.87% -0.001 -0.0653)
OKLCHoklch(25.87% 0.065 269.1)
XYZxyz(1.9100, 1.6750, 5.5318)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172143 #433917
analogous
#173743 #172143 #231743
triadic
#172143 #431721 #214317
tetradic
#172143 #431737 #433917 #174323
square
#172143 #431737 #433917 #174323
split-complementary
#172143 #432317 #374317
monochromatic
#080B17 #080B17 #172143 #273771 #364E9E

Accessibility & contrast

On white

15.73
#172143 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#172143 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172143
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172143#FFFFFF#000000##FFFFFF
##1721431.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112544
Deuteranopia (green-blind)
#0B2142
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #172143;
/* rgb */ color: rgb(23, 33, 67);
/* oklch */ color: oklch(25.9% 0.065 269.1);
Tailwind
colors: {
  custom: {
    50: '#595b77',
    500: '#172143',
    950: '#000000',
  },
}
SCSS
$custom: #172143;
$custom-light: #595b77;
$custom-dark: #000000;
JSON
{
  "hex": "#172143",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 67
  },
  "hsl": {
    "h": 226.364,
    "s": 48.889,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25875,
    "c": 0.06528,
    "h": 269.1
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#172143
secondary
#7A6C3C
accent
#B94FD8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040408
muted
#79797B

Preview Lab

Preview with #172143

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

Preview Lab → · Contrast checker → · Palette generator →

#172143 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva