#1B317F#1B317F

#1B317F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 34.9% C 0.135 H 267.0°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#1B317F
RGBrgb(27, 49, 127)
HSLhsl(227, 65%, 30%)
HSVhsv(227, 79%, 50%)
CMYKcmyk(78.7%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.54, 21.53, -46.55)
CIE-LCHlch(23.54, 51.29, 294.82°)
OKLaboklab(34.9% -0.0071 -0.1345)
OKLCHoklch(34.9% 0.135 267)
XYZxyz(5.3797, 3.9613, 20.5556)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B317F #7F691B
analogous
#1B637F #1B317F #371B7F
triadic
#1B317F #7F1B31 #317F1B
tetradic
#1B317F #7F1B63 #7F691B #1B7F37
square
#1B317F #7F1B63 #7F691B #1B7F37
split-complementary
#1B317F #7F371B #637F1B
monochromatic
#060A1A #101E4D #1B317F #2644B1 #3E60D6

Accessibility & contrast

On white

11.72
#1B317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1B317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B317F
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B317F#FFFFFF#000000##FFFFFF
##1B317F1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b317f;
/* rgb */ color: rgb(27, 49, 127);
/* oklch */ color: oklch(34.9% 0.135 267.0);
Tailwind
colors: {
  custom: {
    50: '#6868a5',
    500: '#1b317f',
    950: '#000000',
  },
}
SCSS
$custom: #1b317f;
$custom-light: #6868a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b317f",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 226.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34902,
    "c": 0.13466,
    "h": 267
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#1B317F
secondary
#B39A43
accent
#C340E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B317F

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

Preview Lab → · Contrast checker → · Palette generator →

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