#1B397E#1B397E

#1B397E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.5% C 0.123 H 263.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#1B397E
RGBrgb(27, 57, 126)
HSLhsl(222, 65%, 30%)
HSVhsv(222, 79%, 49%)
CMYKcmyk(78.6%, 54.8%, 0%, 50.6%)
CIE-LABlab(25.76, 15.49, -42.33)
CIE-LCHlch(25.76, 45.07, 290.10°)
OKLaboklab(36.54% -0.0134 -0.1219)
OKLCHoklch(36.54% 0.123 263.7)
XYZxyz(5.6797, 4.6650, 20.3357)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B397E #7E601B
analogous
#1B6B7E #1B397E #2E1B7E
triadic
#1B397E #7E1B39 #397E1B
tetradic
#1B397E #7E1B6B #7E601B #1B7E2E
square
#1B397E #7E1B6B #7E601B #1B7E2E
split-complementary
#1B397E #7E2E1B #6B7E1B
monochromatic
#050B19 #10224C #1B397E #2650B0 #3E6CD6

Accessibility & contrast

On white

10.86
#1B397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B397E
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B397E#FFFFFF#000000##FFFFFF
##1B397E1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074280
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#004A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1b397e;
/* rgb */ color: rgb(27, 57, 126);
/* oklch */ color: oklch(36.5% 0.123 263.7);
Tailwind
colors: {
  custom: {
    50: '#676ea4',
    500: '#1b397e',
    950: '#000000',
  },
}
SCSS
$custom: #1b397e;
$custom-light: #676ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b397e",
  "rgb": {
    "r": 27,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 221.818,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.36543,
    "c": 0.12264,
    "h": 263.7
  },
  "luminance": 0.04666
}

Semantic roles & 50–950 ramp

primary
#1B397E
secondary
#B29043
accent
#B540E8
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1B397E

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

Preview Lab → · Contrast checker → · Palette generator →

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