#1B176B#1B176B

#1B176B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.139 H 274.8°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#1B176B
RGBrgb(27, 23, 107)
HSLhsl(243, 65%, 25%)
HSVhsv(243, 79%, 42%)
CMYKcmyk(74.8%, 78.5%, 0%, 58%)
CIE-LABlab(14.99, 31.35, -47.74)
CIE-LCHlch(14.99, 57.11, 303.29°)
OKLaboklab(28.07% 0.0117 -0.138)
OKLCHoklch(28.07% 0.139 274.8)
XYZxyz(3.4114, 1.9070, 14.0954)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B176B #676B17
analogous
#173D6B #1B176B #45176B
triadic
#1B176B #6B1B17 #176B1B
tetradic
#1B176B #6B173D #676B17 #176B45
square
#1B176B #6B173D #676B17 #176B45
split-complementary
#1B176B #6B4517 #3D6B17
monochromatic
#060519 #0E0C39 #1B176B #28229D #342DD0

Accessibility & contrast

On white

15.20
#1B176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1B176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B176B
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B176B#FFFFFF#000000##FFFFFF
##1B176B1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296D
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b176b;
/* rgb */ color: rgb(27, 23, 107);
/* oklch */ color: oklch(28.1% 0.139 274.8);
Tailwind
colors: {
  custom: {
    50: '#655596',
    500: '#1b176b',
    950: '#000000',
  },
}
SCSS
$custom: #1b176b;
$custom-light: #655596;
$custom-dark: #000000;
JSON
{
  "hex": "#1b176b",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 242.857,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28065,
    "c": 0.13854,
    "h": 274.8
  },
  "luminance": 0.01907
}

Semantic roles & 50–950 ramp

primary
#1B176B
secondary
#9CA13D
accent
#E840E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1B176B

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

Preview Lab → · Contrast checker → · Palette generator →

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