#1B397F#1B397F

#1B397F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.6% C 0.124 H 263.8°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#1B397F
RGBrgb(27, 57, 127)
HSLhsl(222, 65%, 30%)
HSVhsv(222, 79%, 50%)
CMYKcmyk(78.7%, 55.1%, 0%, 50.2%)
CIE-LABlab(25.84, 15.89, -42.83)
CIE-LCHlch(25.84, 45.68, 290.36°)
OKLaboklab(36.63% -0.0133 -0.1234)
OKLCHoklch(36.63% 0.124 263.8)
XYZxyz(5.7445, 4.6909, 20.6772)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B397F #7F611B
analogous
#1B6B7F #1B397F #2F1B7F
triadic
#1B397F #7F1B39 #397F1B
tetradic
#1B397F #7F1B6B #7F611B #1B7F2F
square
#1B397F #7F1B6B #7F611B #1B7F2F
split-complementary
#1B397F #7F2F1B #6B7F1B
monochromatic
#060C1A #10224D #1B397F #2650B1 #3E6CD6

Accessibility & contrast

On white

10.83
#1B397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1B397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B397F
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B397F#FFFFFF#000000##FFFFFF
##1B397F1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044281
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#004A56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1b397f;
/* rgb */ color: rgb(27, 57, 127);
/* oklch */ color: oklch(36.6% 0.124 263.8);
Tailwind
colors: {
  custom: {
    50: '#686ea5',
    500: '#1b397f',
    950: '#000000',
  },
}
SCSS
$custom: #1b397f;
$custom-light: #686ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b397f",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 222,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36626,
    "c": 0.1241,
    "h": 263.8
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

primary
#1B397F
secondary
#B39143
accent
#B640E8
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1B397F

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

Preview Lab → · Contrast checker → · Palette generator →

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