#1B387F#1B387F

#1B387F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.4% C 0.125 H 264.3°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#1B387F
RGBrgb(27, 56, 127)
HSLhsl(223, 65%, 30%)
HSVhsv(223, 79%, 50%)
CMYKcmyk(78.7%, 55.9%, 0%, 50.2%)
CIE-LABlab(25.54, 16.60, -43.30)
CIE-LCHlch(25.54, 46.38, 290.97°)
OKLaboklab(36.4% -0.0125 -0.1248)
OKLCHoklch(36.4% 0.125 264.3)
XYZxyz(5.6956, 4.5930, 20.6609)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B387F #7F621B
analogous
#1B6A7F #1B387F #301B7F
triadic
#1B387F #7F1B38 #387F1B
tetradic
#1B387F #7F1B6A #7F621B #1B7F30
square
#1B387F #7F1B6A #7F621B #1B7F30
split-complementary
#1B387F #7F301B #6A7F1B
monochromatic
#060B1A #10224D #1B387F #264EB1 #3E6AD6

Accessibility & contrast

On white

10.94
#1B387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1B387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B387F
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B387F#FFFFFF#000000##FFFFFF
##1B387F1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1b387f;
/* rgb */ color: rgb(27, 56, 127);
/* oklch */ color: oklch(36.4% 0.125 264.3);
Tailwind
colors: {
  custom: {
    50: '#686ea5',
    500: '#1b387f',
    950: '#000000',
  },
}
SCSS
$custom: #1b387f;
$custom-light: #686ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b387f",
  "rgb": {
    "r": 27,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 222.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36404,
    "c": 0.12542,
    "h": 264.3
  },
  "luminance": 0.04594
}

Semantic roles & 50–950 ramp

primary
#1B387F
secondary
#B39243
accent
#B740E8
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1B387F

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

Preview Lab → · Contrast checker → · Palette generator →

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