#1731B4#1731B4

#1731B4 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.1% C 0.206 H 266.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#1731B4
RGBrgb(23, 49, 180)
HSLhsl(230, 77%, 40%)
HSVhsv(230, 87%, 71%)
CMYKcmyk(87.2%, 72.8%, 0%, 29.4%)
CIE-LABlab(28.57, 41.44, -70.74)
CIE-LCHlch(28.57, 81.98, 300.36°)
OKLaboklab(40.11% -0.0129 -0.2051)
OKLCHoklch(40.11% 0.206 266.4)
XYZxyz(9.6870, 5.6728, 43.7556)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1731B4 #B49A17
analogous
#177FB4 #1731B4 #4C17B4
triadic
#1731B4 #B41731 #31B417
tetradic
#1731B4 #B4177F #B49A17 #17B44C
square
#1731B4 #B4177F #B49A17 #17B44C
split-complementary
#1731B4 #B44C17 #7FB417
monochromatic
#091347 #10227E #1731B4 #2545E3 #5B73EA

Accessibility & contrast

On white

9.84
#1731B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1731B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1731B4
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1731B4#FFFFFF#000000##FFFFFF
##1731B41.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#003CB2
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1731b4;
/* rgb */ color: rgb(23, 49, 180);
/* oklch */ color: oklch(40.1% 0.206 266.4);
Tailwind
colors: {
  custom: {
    50: '#766acc',
    500: '#1731b4',
    950: '#000000',
  },
}
SCSS
$custom: #1731b4;
$custom-light: #766acc;
$custom-dark: #000000;
JSON
{
  "hex": "#1731b4",
  "rgb": {
    "r": 23,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 230.064,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40105,
    "c": 0.20555,
    "h": 266.4
  },
  "luminance": 0.05674
}

Semantic roles & 50–950 ramp

primary
#1731B4
secondary
#CEBA59
accent
#D434F4
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0A0614
muted
#7C7A82

Preview Lab

Preview with #1731B4

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

Preview Lab → · Contrast checker → · Palette generator →

#1731B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva