#1B2174#1B2174

#1B2174 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.139 H 271.7°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#1B2174
RGBrgb(27, 33, 116)
HSLhsl(236, 62%, 28%)
HSVhsv(236, 77%, 45%)
CMYKcmyk(76.7%, 71.6%, 0%, 54.5%)
CIE-LABlab(18.28, 28.26, -48.16)
CIE-LCHlch(18.28, 55.84, 300.40°)
OKLaboklab(30.71% 0.0042 -0.1393)
OKLCHoklch(30.71% 0.139 271.7)
XYZxyz(4.1472, 2.5812, 16.7993)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2174 #746E1B
analogous
#1B4D74 #1B2174 #411B74
triadic
#1B2174 #741B21 #21741B
tetradic
#1B2174 #741B4D #746E1B #1B7441
square
#1B2174 #741B4D #746E1B #1B7441
split-complementary
#1B2174 #74411B #4D741B
monochromatic
#060719 #0F1342 #1B2174 #272FA6 #3943D1

Accessibility & contrast

On white

13.85
#1B2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2174
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2174#FFFFFF#000000##FFFFFF
##1B21741.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b2174;
/* rgb */ color: rgb(27, 33, 116);
/* oklch */ color: oklch(30.7% 0.139 271.7);
Tailwind
colors: {
  custom: {
    50: '#675c9d',
    500: '#1b2174',
    950: '#000000',
  },
}
SCSS
$custom: #1b2174;
$custom-light: #675c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2174",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 235.955,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30714,
    "c": 0.13937,
    "h": 271.7
  },
  "luminance": 0.02582
}

Semantic roles & 50–950 ramp

primary
#1B2174
secondary
#A9A242
accent
#DA42E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B2174

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

Preview Lab → · Contrast checker → · Palette generator →

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