#1B397A#1B397A

#1B397A is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.2% C 0.117 H 263.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#1B397A
RGBrgb(27, 57, 122)
HSLhsl(221, 64%, 29%)
HSVhsv(221, 78%, 48%)
CMYKcmyk(77.9%, 53.3%, 0%, 52.2%)
CIE-LABlab(25.45, 13.85, -40.30)
CIE-LCHlch(25.45, 42.61, 288.97°)
OKLaboklab(36.22% -0.0139 -0.1159)
OKLCHoklch(36.22% 0.117 263.2)
XYZxyz(5.4267, 4.5638, 19.0035)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B397A #7A5C1B
analogous
#1B697A #1B397A #2D1B7A
triadic
#1B397A #7A1B39 #397A1B
tetradic
#1B397A #7A1B69 #7A5C1B #1B7A2D
square
#1B397A #7A1B69 #7A5C1B #1B7A2D
split-complementary
#1B397A #7A2D1B #697A1B
monochromatic
#060C19 #102248 #1B397A #2650AC #3C6CD4

Accessibility & contrast

On white

10.98
#1B397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1B397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B397A
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B397A#FFFFFF#000000##FFFFFF
##1B397A1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F417C
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#004953
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1b397a;
/* rgb */ color: rgb(27, 57, 122);
/* oklch */ color: oklch(36.2% 0.117 263.2);
Tailwind
colors: {
  custom: {
    50: '#666ea1',
    500: '#1b397a',
    950: '#000000',
  },
}
SCSS
$custom: #1b397a;
$custom-light: #666ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b397a",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 221.053,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36216,
    "c": 0.11676,
    "h": 263.2
  },
  "luminance": 0.04564
}

Semantic roles & 50–950 ramp

primary
#1B397A
secondary
#AE8C43
accent
#B241E7
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1B397A

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

Preview Lab → · Contrast checker → · Palette generator →

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