#1B397D#1B397D

#1B397D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.5% C 0.121 H 263.6°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#1B397D
RGBrgb(27, 57, 125)
HSLhsl(222, 64%, 30%)
HSVhsv(222, 78%, 49%)
CMYKcmyk(78.4%, 54.4%, 0%, 51%)
CIE-LABlab(25.68, 15.08, -41.82)
CIE-LCHlch(25.68, 44.46, 289.83°)
OKLaboklab(36.46% -0.0135 -0.1204)
OKLCHoklch(36.46% 0.121 263.6)
XYZxyz(5.6155, 4.6393, 19.9976)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B397D #7D5F1B
analogous
#1B6A7D #1B397D #2E1B7D
triadic
#1B397D #7D1B39 #397D1B
tetradic
#1B397D #7D1B6A #7D5F1B #1B7D2E
square
#1B397D #7D1B6A #7D5F1B #1B7D2E
split-complementary
#1B397D #7D2E1B #6A7D1B
monochromatic
#050B19 #10224B #1B397D #2650AF #3D6CD5

Accessibility & contrast

On white

10.89
#1B397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B397D
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B397D#FFFFFF#000000##FFFFFF
##1B397D1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09427F
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1b397d;
/* rgb */ color: rgb(27, 57, 125);
/* oklch */ color: oklch(36.5% 0.121 263.6);
Tailwind
colors: {
  custom: {
    50: '#676ea3',
    500: '#1b397d',
    950: '#000000',
  },
}
SCSS
$custom: #1b397d;
$custom-light: #676ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b397d",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 221.633,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36461,
    "c": 0.12117,
    "h": 263.6
  },
  "luminance": 0.0464
}

Semantic roles & 50–950 ramp

primary
#1B397D
secondary
#B18F43
accent
#B440E7
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1B397D

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

Preview Lab → · Contrast checker → · Palette generator →

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