#1B2179#1B2179

#1B2179 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.146 H 271.4°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#1B2179
RGBrgb(27, 33, 121)
HSLhsl(236, 64%, 29%)
HSVhsv(236, 78%, 47%)
CMYKcmyk(77.7%, 72.7%, 0%, 52.5%)
CIE-LABlab(18.80, 30.14, -50.51)
CIE-LCHlch(18.80, 58.82, 300.82°)
OKLaboklab(31.25% 0.0036 -0.1462)
OKLCHoklch(31.25% 0.146 271.4)
XYZxyz(4.4459, 2.7007, 18.3724)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2179 #79731B
analogous
#1B5079 #1B2179 #441B79
triadic
#1B2179 #791B21 #21791B
tetradic
#1B2179 #791B50 #79731B #1B7944
square
#1B2179 #791B50 #79731B #1B7944
split-complementary
#1B2179 #79441B #50791B
monochromatic
#060719 #101347 #1B2179 #262FAB #3B45D3

Accessibility & contrast

On white

13.63
#1B2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1B2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2179
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2179#FFFFFF#000000##FFFFFF
##1B21791.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b2179;
/* rgb */ color: rgb(27, 33, 121);
/* oklch */ color: oklch(31.2% 0.146 271.4);
Tailwind
colors: {
  custom: {
    50: '#685da1',
    500: '#1b2179',
    950: '#000000',
  },
}
SCSS
$custom: #1b2179;
$custom-light: #685da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2179",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 236.17,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31248,
    "c": 0.14622,
    "h": 271.4
  },
  "luminance": 0.02701
}

Semantic roles & 50–950 ramp

primary
#1B2179
secondary
#ADA643
accent
#DC41E7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B2179

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

Preview Lab → · Contrast checker → · Palette generator →

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