#1B3271#1B3271

#1B3271 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.9% C 0.113 H 265.6°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#1B3271
RGBrgb(27, 50, 113)
HSLhsl(224, 61%, 27%)
HSVhsv(224, 76%, 44%)
CMYKcmyk(76.1%, 55.8%, 0%, 55.7%)
CIE-LABlab(22.67, 15.14, -39.07)
CIE-LCHlch(22.67, 41.90, 291.19°)
OKLaboklab(33.89% -0.0087 -0.1124)
OKLCHoklch(33.89% 0.113 265.6)
XYZxyz(4.5722, 3.7060, 16.0939)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3271 #715A1B
analogous
#1B5D71 #1B3271 #2F1B71
triadic
#1B3271 #711B32 #32711B
tetradic
#1B3271 #711B5D #715A1B #1B712F
square
#1B3271 #711B5D #715A1B #1B712F
split-complementary
#1B3271 #712F1B #5D711B
monochromatic
#060B19 #0F1C40 #1B3271 #2748A2 #3760CF

Accessibility & contrast

On white

12.06
#1B3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1B3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3271
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3271#FFFFFF#000000##FFFFFF
##1B32711.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053A73
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b3271;
/* rgb */ color: rgb(27, 50, 113);
/* oklch */ color: oklch(33.9% 0.113 265.6);
Tailwind
colors: {
  custom: {
    50: '#64699a',
    500: '#1b3271',
    950: '#000000',
  },
}
SCSS
$custom: #1b3271;
$custom-light: #64699a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3271",
  "rgb": {
    "r": 27,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 223.953,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33886,
    "c": 0.11278,
    "h": 265.6
  },
  "luminance": 0.03706
}

Semantic roles & 50–950 ramp

primary
#1B3271
secondary
#A68B42
accent
#B943E5
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1B3271

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

Preview Lab → · Contrast checker → · Palette generator →

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