#1B2872#1B2872

#1B2872 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.128 H 269.8°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#1B2872
RGBrgb(27, 40, 114)
HSLhsl(231, 62%, 28%)
HSVhsv(231, 76%, 45%)
CMYKcmyk(76.3%, 64.9%, 0%, 55.3%)
CIE-LABlab(19.90, 22.67, -44.22)
CIE-LCHlch(19.90, 49.69, 297.14°)
OKLaboklab(31.84% -0.0004 -0.1277)
OKLCHoklch(31.84% 0.128 269.8)
XYZxyz(4.2470, 2.9651, 16.2648)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2872 #72651B
analogous
#1B5472 #1B2872 #391B72
triadic
#1B2872 #721B28 #28721B
tetradic
#1B2872 #721B54 #72651B #1B7239
square
#1B2872 #721B54 #72651B #1B7239
split-complementary
#1B2872 #72391B #54721B
monochromatic
#060919 #0F1741 #1B2872 #2739A3 #384ED0

Accessibility & contrast

On white

13.18
#1B2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1B2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2872
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2872#FFFFFF#000000##FFFFFF
##1B28721.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2872;
/* rgb */ color: rgb(27, 40, 114);
/* oklch */ color: oklch(31.8% 0.128 269.8);
Tailwind
colors: {
  custom: {
    50: '#66619b',
    500: '#1b2872',
    950: '#000000',
  },
}
SCSS
$custom: #1b2872;
$custom-light: #66619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2872",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 231.034,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3184,
    "c": 0.12772,
    "h": 269.8
  },
  "luminance": 0.02966
}

Semantic roles & 50–950 ramp

primary
#1B2872
secondary
#A79842
accent
#CD43E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1B2872

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

Preview Lab → · Contrast checker → · Palette generator →

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