#172145#172145

#172145 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.0% C 0.069 H 269.5°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#172145
RGBrgb(23, 33, 69)
HSLhsl(227, 50%, 18%)
HSVhsv(227, 67%, 27%)
CMYKcmyk(66.7%, 52.2%, 0%, 72.9%)
CIE-LABlab(13.82, 8.82, -24.06)
CIE-LCHlch(13.82, 25.63, 290.13°)
OKLaboklab(26.03% -0.0006 -0.0687)
OKLCHoklch(26.03% 0.069 269.5)
XYZxyz(1.9710, 1.6994, 5.8532)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172145 #453B17
analogous
#173845 #172145 #241745
triadic
#172145 #451721 #214517
tetradic
#172145 #451738 #453B17 #174524
square
#172145 #451738 #453B17 #174524
split-complementary
#172145 #452417 #384517
monochromatic
#080B17 #080B17 #172145 #263773 #364DA1

Accessibility & contrast

On white

15.67
#172145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172145
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172145#FFFFFF#000000##FFFFFF
##1721451.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102546
Deuteranopia (green-blind)
#092144
Tritanopia (blue-blind)
#00292F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #172145;
/* rgb */ color: rgb(23, 33, 69);
/* oklch */ color: oklch(26.0% 0.069 269.5);
Tailwind
colors: {
  custom: {
    50: '#595b79',
    500: '#172145',
    950: '#000000',
  },
}
SCSS
$custom: #172145;
$custom-light: #595b79;
$custom-dark: #000000;
JSON
{
  "hex": "#172145",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 69
  },
  "hsl": {
    "h": 226.957,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26031,
    "c": 0.06868,
    "h": 269.5
  },
  "luminance": 0.017
}

Semantic roles & 50–950 ramp

primary
#172145
secondary
#7C6E3C
accent
#BB4EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040409
muted
#79797B

Preview Lab

Preview with #172145

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

Preview Lab → · Contrast checker → · Palette generator →

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