#1B317D#1B317D

#1B317D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.7% C 0.132 H 266.9°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#1B317D
RGBrgb(27, 49, 125)
HSLhsl(227, 64%, 30%)
HSVhsv(227, 78%, 49%)
CMYKcmyk(78.4%, 60.8%, 0%, 51%)
CIE-LABlab(23.37, 20.73, -45.57)
CIE-LCHlch(23.37, 50.07, 294.46°)
OKLaboklab(34.72% -0.0072 -0.1316)
OKLCHoklch(34.72% 0.132 266.9)
XYZxyz(5.2507, 3.9097, 19.8760)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B317D #7D671B
analogous
#1B627D #1B317D #361B7D
triadic
#1B317D #7D1B31 #317D1B
tetradic
#1B317D #7D1B62 #7D671B #1B7D36
square
#1B317D #7D1B62 #7D671B #1B7D36
split-complementary
#1B317D #7D361B #627D1B
monochromatic
#050A19 #101D4B #1B317D #2645AF #3D5FD5

Accessibility & contrast

On white

11.78
#1B317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1B317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B317D
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B317D#FFFFFF#000000##FFFFFF
##1B317D1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b317d;
/* rgb */ color: rgb(27, 49, 125);
/* oklch */ color: oklch(34.7% 0.132 266.9);
Tailwind
colors: {
  custom: {
    50: '#6868a3',
    500: '#1b317d',
    950: '#000000',
  },
}
SCSS
$custom: #1b317d;
$custom-light: #6868a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b317d",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 226.531,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3472,
    "c": 0.13179,
    "h": 266.9
  },
  "luminance": 0.0391
}

Semantic roles & 50–950 ramp

primary
#1B317D
secondary
#B19843
accent
#C240E7
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B317D

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

Preview Lab → · Contrast checker → · Palette generator →

#1B317D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva