#1B1474#1B1474

#1B1474 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.153 H 274.1°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#1B1474
RGBrgb(27, 20, 116)
HSLhsl(244, 71%, 27%)
HSVhsv(244, 83%, 45%)
CMYKcmyk(76.7%, 82.8%, 0%, 54.5%)
CIE-LABlab(15.46, 36.19, -52.83)
CIE-LCHlch(15.46, 64.03, 304.41°)
OKLaboklab(28.7% 0.011 -0.1528)
OKLCHoklch(28.7% 0.153 274.1)
XYZxyz(3.8535, 1.9939, 16.7014)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1474 #6D7414
analogous
#143D74 #1B1474 #4B1474
triadic
#1B1474 #741B14 #14741B
tetradic
#1B1474 #74143D #6D7414 #14744B
square
#1B1474 #74143D #6D7414 #14744B
split-complementary
#1B1474 #744B14 #3D7414
monochromatic
#06051A #0F0B40 #1B1474 #271DA8 #3528DA

Accessibility & contrast

On white

15.01
#1B1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1B1474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1474
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1474#FFFFFF#000000##FFFFFF
##1B14741.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002272
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1b1474;
/* rgb */ color: rgb(27, 20, 116);
/* oklch */ color: oklch(28.7% 0.153 274.1);
Tailwind
colors: {
  custom: {
    50: '#68549d',
    500: '#1b1474',
    950: '#000000',
  },
}
SCSS
$custom: #1b1474;
$custom-light: #68549d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1474",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 244.375,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28704,
    "c": 0.15319,
    "h": 274.1
  },
  "luminance": 0.01994
}

Semantic roles & 50–950 ramp

primary
#1B1474
secondary
#A2AA3A
accent
#ED3AE0
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B1474

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

Preview Lab → · Contrast checker → · Palette generator →

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