#1B397B#1B397B

#1B397B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.3% C 0.118 H 263.3°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#1B397B
RGBrgb(27, 57, 123)
HSLhsl(221, 64%, 29%)
HSVhsv(221, 78%, 48%)
CMYKcmyk(78%, 53.7%, 0%, 51.8%)
CIE-LABlab(25.53, 14.26, -40.81)
CIE-LCHlch(25.53, 43.23, 289.26°)
OKLaboklab(36.3% -0.0138 -0.1174)
OKLCHoklch(36.3% 0.118 263.3)
XYZxyz(5.4890, 4.5887, 19.3315)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B397B #7B5D1B
analogous
#1B697B #1B397B #2D1B7B
triadic
#1B397B #7B1B39 #397B1B
tetradic
#1B397B #7B1B69 #7B5D1B #1B7B2D
square
#1B397B #7B1B69 #7B5D1B #1B7B2D
split-complementary
#1B397B #7B2D1B #697B1B
monochromatic
#060C19 #102249 #1B397B #2650AD #3C6CD4

Accessibility & contrast

On white

10.95
#1B397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B397B
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B397B#FFFFFF#000000##FFFFFF
##1B397B1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D417D
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#004954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1b397b;
/* rgb */ color: rgb(27, 57, 123);
/* oklch */ color: oklch(36.3% 0.118 263.3);
Tailwind
colors: {
  custom: {
    50: '#676ea2',
    500: '#1b397b',
    950: '#000000',
  },
}
SCSS
$custom: #1b397b;
$custom-light: #676ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b397b",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 221.25,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36297,
    "c": 0.11823,
    "h": 263.3
  },
  "luminance": 0.04589
}

Semantic roles & 50–950 ramp

primary
#1B397B
secondary
#AF8D43
accent
#B341E7
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1B397B

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

Preview Lab → · Contrast checker → · Palette generator →

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