#1B2172#1B2172

#1B2172 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.137 H 271.9°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#1B2172
RGBrgb(27, 33, 114)
HSLhsl(236, 62%, 28%)
HSVhsv(236, 76%, 45%)
CMYKcmyk(76.3%, 71.1%, 0%, 55.3%)
CIE-LABlab(18.08, 27.50, -47.21)
CIE-LCHlch(18.08, 54.63, 300.22°)
OKLaboklab(30.5% 0.0045 -0.1365)
OKLCHoklch(30.5% 0.137 271.9)
XYZxyz(4.0321, 2.5352, 16.1932)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2172 #726C1B
analogous
#1B4C72 #1B2172 #401B72
triadic
#1B2172 #721B21 #21721B
tetradic
#1B2172 #721B4C #726C1B #1B7240
square
#1B2172 #721B4C #726C1B #1B7240
split-complementary
#1B2172 #72401B #4C721B
monochromatic
#060719 #0F1341 #1B2172 #272FA3 #3842D0

Accessibility & contrast

On white

13.93
#1B2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1B2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2172
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2172#FFFFFF#000000##FFFFFF
##1B21721.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b2172;
/* rgb */ color: rgb(27, 33, 114);
/* oklch */ color: oklch(30.5% 0.137 271.9);
Tailwind
colors: {
  custom: {
    50: '#665c9b',
    500: '#1b2172',
    950: '#000000',
  },
}
SCSS
$custom: #1b2172;
$custom-light: #665c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2172",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 235.862,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30503,
    "c": 0.1366,
    "h": 271.9
  },
  "luminance": 0.02536
}

Semantic roles & 50–950 ramp

primary
#1B2172
secondary
#A7A042
accent
#DA43E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B2172

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

Preview Lab → · Contrast checker → · Palette generator →

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