#1B2147#1B2147

#1B2147 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.5% C 0.071 H 273.8°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#1B2147
RGBrgb(27, 33, 71)
HSLhsl(232, 45%, 19%)
HSVhsv(232, 62%, 28%)
CMYKcmyk(62%, 53.5%, 0%, 72.2%)
CIE-LABlab(14.26, 10.59, -24.73)
CIE-LCHlch(14.26, 26.90, 293.18°)
OKLaboklab(26.49% 0.0047 -0.0705)
OKLCHoklch(26.49% 0.071 273.8)
XYZxyz(2.1328, 1.7755, 6.1903)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2147 #47411B
analogous
#1B3747 #1B2147 #2B1B47
triadic
#1B2147 #471B21 #21471B
tetradic
#1B2147 #471B37 #47411B #1B472B
square
#1B2147 #471B37 #47411B #1B472B
split-complementary
#1B2147 #472B1B #37471B
monochromatic
#080A16 #0A0C1B #1B2147 #2C3673 #3D4AA0

Accessibility & contrast

On white

15.50
#1B2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1B2147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2147
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2147#FFFFFF#000000##FFFFFF
##1B21471.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2648
Deuteranopia (green-blind)
#092246
Tritanopia (blue-blind)
#042930
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1b2147;
/* rgb */ color: rgb(27, 33, 71);
/* oklch */ color: oklch(26.5% 0.071 273.8);
Tailwind
colors: {
  custom: {
    50: '#5c5c7a',
    500: '#1b2147',
    950: '#000000',
  },
}
SCSS
$custom: #1b2147;
$custom-light: #5c5c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2147",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 231.818,
    "s": 44.898,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26489,
    "c": 0.07069,
    "h": 273.8
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#1B2147
secondary
#7D7541
accent
#C353D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040409
muted
#79797B

Preview Lab

Preview with #1B2147

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

Preview Lab → · Contrast checker → · Palette generator →

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