#1B1F74#1B1F74

#1B1F74 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.142 H 272.2°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#1B1F74
RGBrgb(27, 31, 116)
HSLhsl(237, 62%, 28%)
HSVhsv(237, 77%, 45%)
CMYKcmyk(76.7%, 73.3%, 0%, 54.5%)
CIE-LABlab(17.80, 29.58, -48.96)
CIE-LCHlch(17.80, 57.20, 301.14°)
OKLaboklab(30.37% 0.0055 -0.1416)
OKLCHoklch(30.37% 0.142 272.2)
XYZxyz(4.0933, 2.4735, 16.7813)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1F74 #74701B
analogous
#1B4B74 #1B1F74 #431B74
triadic
#1B1F74 #741B1F #1F741B
tetradic
#1B1F74 #741B4B #74701B #1B7443
square
#1B1F74 #741B4B #74701B #1B7443
split-complementary
#1B1F74 #74431B #4B741B
monochromatic
#060719 #0F1242 #1B1F74 #272CA6 #393FD1

Accessibility & contrast

On white

14.05
#1B1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1B1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1F74
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1F74#FFFFFF#000000##FFFFFF
##1B1F741.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b1f74;
/* rgb */ color: rgb(27, 31, 116);
/* oklch */ color: oklch(30.4% 0.142 272.2);
Tailwind
colors: {
  custom: {
    50: '#675b9d',
    500: '#1b1f74',
    950: '#000000',
  },
}
SCSS
$custom: #1b1f74;
$custom-light: #675b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1f74",
  "rgb": {
    "r": 27,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 237.303,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30365,
    "c": 0.14174,
    "h": 272.2
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#1B1F74
secondary
#A9A442
accent
#DE42E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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