#172262#172262

#172262 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.8% C 0.113 H 270.1°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#172262
RGBrgb(23, 34, 98)
HSLhsl(231, 62%, 24%)
HSVhsv(231, 77%, 38%)
CMYKcmyk(76.5%, 65.3%, 0%, 61.6%)
CIE-LABlab(16.54, 19.99, -39.29)
CIE-LCHlch(16.54, 44.08, 296.96°)
OKLaboklab(28.84% 0.0003 -0.1134)
OKLCHoklch(28.84% 0.113 270.1)
XYZxyz(3.1292, 2.2077, 11.8141)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172262 #625717
analogous
#174762 #172262 #311762
triadic
#172262 #621722 #226217
tetradic
#172262 #621747 #625717 #176231
square
#172262 #621747 #625717 #176231
split-complementary
#172262 #623117 #476217
monochromatic
#060919 #0B1130 #172262 #233394 #2E44C5

Accessibility & contrast

On white

14.57
#172262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#172262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172262
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172262#FFFFFF#000000##FFFFFF
##1722621.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#00323E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #172262;
/* rgb */ color: rgb(23, 34, 98);
/* oklch */ color: oklch(28.8% 0.113 270.1);
Tailwind
colors: {
  custom: {
    50: '#605c8f',
    500: '#172262',
    950: '#000000',
  },
}
SCSS
$custom: #172262;
$custom-light: #605c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#172262",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 98
  },
  "hsl": {
    "h": 231.2,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28835,
    "c": 0.11342,
    "h": 270.1
  },
  "luminance": 0.02208
}

Semantic roles & 50–950 ramp

primary
#172262
secondary
#998B3C
accent
#CD43E5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #172262

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

Preview Lab → · Contrast checker → · Palette generator →

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