#1B2772#1B2772

#1B2772 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.129 H 270.1°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#1B2772
RGBrgb(27, 39, 114)
HSLhsl(232, 62%, 28%)
HSVhsv(232, 76%, 45%)
CMYKcmyk(76.3%, 65.8%, 0%, 55.3%)
CIE-LABlab(19.63, 23.37, -44.66)
CIE-LCHlch(19.63, 50.41, 297.63°)
OKLaboklab(31.64% 0.0003 -0.129)
OKLCHoklch(31.64% 0.129 270.1)
XYZxyz(4.2137, 2.8985, 16.2537)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2772 #72661B
analogous
#1B5272 #1B2772 #3A1B72
triadic
#1B2772 #721B27 #27721B
tetradic
#1B2772 #721B52 #72661B #1B723A
square
#1B2772 #721B52 #72661B #1B723A
split-complementary
#1B2772 #723A1B #52721B
monochromatic
#060819 #0F1641 #1B2772 #2738A3 #384DD0

Accessibility & contrast

On white

13.29
#1B2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1B2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2772
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2772#FFFFFF#000000##FFFFFF
##1B27721.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b2772;
/* rgb */ color: rgb(27, 39, 114);
/* oklch */ color: oklch(31.6% 0.129 270.1);
Tailwind
colors: {
  custom: {
    50: '#66619b',
    500: '#1b2772',
    950: '#000000',
  },
}
SCSS
$custom: #1b2772;
$custom-light: #66619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2772",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 231.724,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3164,
    "c": 0.12903,
    "h": 270.1
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#1B2772
secondary
#A79942
accent
#CE43E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1B2772

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

Preview Lab → · Contrast checker → · Palette generator →

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