#172FE2#172FE2

#172FE2 is a mid, highly saturated blue. Relative luminance 0.077; OKLCH L 45.0% C 0.260 H 266.1°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#172FE2
RGBrgb(23, 47, 226)
HSLhsl(233, 82%, 49%)
HSVhsv(233, 90%, 89%)
CMYKcmyk(89.8%, 79.2%, 0%, 11.4%)
CIE-LABlab(33.36, 58.00, -89.65)
CIE-LCHlch(33.36, 106.77, 302.90°)
OKLaboklab(45% -0.0179 -0.2599)
OKLCHoklch(45% 0.26 266.1)
XYZxyz(15.0926, 7.7042, 72.6283)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172FE2 #E2CA17
analogous
#1795E2 #172FE2 #6417E2
triadic
#172FE2 #E2172F #2FE217
tetradic
#172FE2 #E21795 #E2CA17 #17E264
square
#172FE2 #E21795 #E2CA17 #17E264
split-complementary
#172FE2 #E26417 #95E217
monochromatic
#0C1873 #1123AA #172FE2 #4A5DED #818FF2

Accessibility & contrast

On white

8.26
#172FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#172FE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172FE2
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172FE2#FFFFFF#000000##FFFFFF
##172FE21.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E7
Deuteranopia (green-blind)
#0044DF
Tritanopia (blue-blind)
#006889
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #172fe2;
/* rgb */ color: rgb(23, 47, 226);
/* oklch */ color: oklch(45.0% 0.260 266.1);
Tailwind
colors: {
  custom: {
    50: '#826bed',
    500: '#172fe2',
    950: '#000000',
  },
}
SCSS
$custom: #172fe2;
$custom-light: #826bed;
$custom-dark: #000000;
JSON
{
  "hex": "#172fe2",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 232.906,
    "s": 81.526,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45004,
    "c": 0.26046,
    "h": 266.1
  },
  "luminance": 0.07706
}

Semantic roles & 50–950 ramp

primary
#172FE2
secondary
#DBCF7A
accent
#E030F8
background
#F9F6FE
surface
#F1EBFD
border
#CBC6D5
text
#0D0717
muted
#7E7A85

Preview Lab

Preview with #172FE2

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

Preview Lab → · Contrast checker → · Palette generator →

#172FE2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva