#172274#172274

#172274 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.139 H 269.7°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#172274
RGBrgb(23, 34, 116)
HSLhsl(233, 67%, 27%)
HSVhsv(233, 80%, 45%)
CMYKcmyk(80.2%, 70.7%, 0%, 54.5%)
CIE-LABlab(18.31, 27.15, -48.13)
CIE-LCHlch(18.31, 55.26, 299.43°)
OKLaboklab(30.67% -0.0008 -0.1393)
OKLCHoklch(30.67% 0.139 269.7)
XYZxyz(4.0767, 2.5867, 16.8040)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172274 #746917
analogous
#175174 #172274 #3A1774
triadic
#172274 #741722 #227417
tetradic
#172274 #741751 #746917 #17743A
square
#172274 #741751 #746917 #17743A
split-complementary
#172274 #743A17 #517417
monochromatic
#05071A #0D1341 #172274 #2131A7 #3043D6

Accessibility & contrast

On white

13.84
#172274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172274
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172274#FFFFFF#000000##FFFFFF
##1722741.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172274;
/* rgb */ color: rgb(23, 34, 116);
/* oklch */ color: oklch(30.7% 0.139 269.7);
Tailwind
colors: {
  custom: {
    50: '#655d9d',
    500: '#172274',
    950: '#000000',
  },
}
SCSS
$custom: #172274;
$custom-light: #655d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#172274",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 116
  },
  "hsl": {
    "h": 232.903,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3067,
    "c": 0.13931,
    "h": 269.7
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#172274
secondary
#A99D3D
accent
#D53EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #172274

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

Preview Lab → · Contrast checker → · Palette generator →

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