#172268#172268

#172268 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.4% C 0.122 H 270.0°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#172268
RGBrgb(23, 34, 104)
HSLhsl(232, 64%, 25%)
HSVhsv(232, 78%, 41%)
CMYKcmyk(77.9%, 67.3%, 0%, 59.2%)
CIE-LABlab(17.11, 22.41, -42.30)
CIE-LCHlch(17.11, 47.87, 297.91°)
OKLaboklab(29.43% 0 -0.1223)
OKLCHoklch(29.43% 0.122 270)
XYZxyz(3.4232, 2.3253, 13.3624)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172268 #685D17
analogous
#174A68 #172268 #351768
triadic
#172268 #681722 #226817
tetradic
#172268 #68174A #685D17 #176835
square
#172268 #68174A #685D17 #176835
split-complementary
#172268 #683517 #4A6817
monochromatic
#060819 #0C1236 #172268 #22329A #2D43CC

Accessibility & contrast

On white

14.33
#172268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#172268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172268
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172268#FFFFFF#000000##FFFFFF
##1722681.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002667
Tritanopia (blue-blind)
#003441
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172268;
/* rgb */ color: rgb(23, 34, 104);
/* oklch */ color: oklch(29.4% 0.122 270.0);
Tailwind
colors: {
  custom: {
    50: '#625d94',
    500: '#172268',
    950: '#000000',
  },
}
SCSS
$custom: #172268;
$custom-light: #625d94;
$custom-dark: #000000;
JSON
{
  "hex": "#172268",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 104
  },
  "hsl": {
    "h": 231.852,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.2943,
    "c": 0.12227,
    "h": 270
  },
  "luminance": 0.02326
}

Semantic roles & 50–950 ramp

primary
#172268
secondary
#9E913D
accent
#D041E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #172268

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

Preview Lab → · Contrast checker → · Palette generator →

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