#172148#172148

#172148 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.074 H 269.9°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#172148
RGBrgb(23, 33, 72)
HSLhsl(228, 52%, 19%)
HSVhsv(228, 68%, 28%)
CMYKcmyk(68.1%, 54.2%, 0%, 71.8%)
CIE-LABlab(14.05, 10.05, -25.78)
CIE-LCHlch(14.05, 27.67, 291.29°)
OKLaboklab(26.27% -0.0001 -0.0737)
OKLCHoklch(26.27% 0.074 269.9)
XYZxyz(2.0665, 1.7376, 6.3561)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172148 #483E17
analogous
#173948 #172148 #251748
triadic
#172148 #481721 #214817
tetradic
#172148 #481739 #483E17 #174825
square
#172148 #481739 #483E17 #174825
split-complementary
#172148 #482517 #394817
monochromatic
#070B17 #080C1A #172148 #263676 #354CA5

Accessibility & contrast

On white

15.58
#172148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#172148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172148
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172148#FFFFFF#000000##FFFFFF
##1721481.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2649
Deuteranopia (green-blind)
#052247
Tritanopia (blue-blind)
#002A31
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #172148;
/* rgb */ color: rgb(23, 33, 72);
/* oklch */ color: oklch(26.3% 0.074 269.9);
Tailwind
colors: {
  custom: {
    50: '#5a5b7b',
    500: '#172148',
    950: '#000000',
  },
}
SCSS
$custom: #172148;
$custom-light: #5a5b7b;
$custom-dark: #000000;
JSON
{
  "hex": "#172148",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 227.755,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26271,
    "c": 0.07374,
    "h": 269.9
  },
  "luminance": 0.01738
}

Semantic roles & 50–950 ramp

primary
#172148
secondary
#7F713C
accent
#BE4DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040409
muted
#79797B

Preview Lab

Preview with #172148

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

Preview Lab → · Contrast checker → · Palette generator →

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