#1B3197#1B3197

#1B3197 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.168 H 267.4°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#1B3197
RGBrgb(27, 49, 151)
HSLhsl(229, 70%, 35%)
HSVhsv(229, 82%, 59%)
CMYKcmyk(82.1%, 67.5%, 0%, 40.8%)
CIE-LABlab(25.75, 30.95, -57.86)
CIE-LCHlch(25.75, 65.61, 298.14°)
OKLaboklab(37.21% -0.0076 -0.1676)
OKLCHoklch(37.21% 0.168 267.4)
XYZxyz(7.1343, 4.6632, 29.7962)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3197 #97811B
analogous
#1B6F97 #1B3197 #431B97
triadic
#1B3197 #971B31 #31971B
tetradic
#1B3197 #971B6F #97811B #1B9743
square
#1B3197 #971B6F #97811B #1B9743
split-complementary
#1B3197 #97431B #6F971B
monochromatic
#080F2F #122063 #1B3197 #2442CB #4D67DF

Accessibility & contrast

On white

10.87
#1B3197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1B3197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3197
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3197#FFFFFF#000000##FFFFFF
##1B31971.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#004D5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1b3197;
/* rgb */ color: rgb(27, 49, 151);
/* oklch */ color: oklch(37.2% 0.168 267.4);
Tailwind
colors: {
  custom: {
    50: '#6f69b7',
    500: '#1b3197',
    950: '#000000',
  },
}
SCSS
$custom: #1b3197;
$custom-light: #6f69b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3197",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 229.355,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37214,
    "c": 0.16774,
    "h": 267.4
  },
  "luminance": 0.04664
}

Semantic roles & 50–950 ramp

primary
#1B3197
secondary
#C1AD4C
accent
#CD3BEC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1B3197

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

Preview Lab → · Contrast checker → · Palette generator →

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