#1B176C#1B176C

#1B176C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.140 H 274.7°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#1B176C
RGBrgb(27, 23, 108)
HSLhsl(243, 65%, 26%)
HSVhsv(243, 79%, 42%)
CMYKcmyk(75%, 78.7%, 0%, 57.6%)
CIE-LABlab(15.11, 31.70, -48.21)
CIE-LCHlch(15.11, 57.70, 303.33°)
OKLaboklab(28.18% 0.0115 -0.1394)
OKLCHoklch(28.18% 0.14 274.7)
XYZxyz(3.4643, 1.9282, 14.3741)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B176C #686C17
analogous
#173D6C #1B176C #45176C
triadic
#1B176C #6C1B17 #176C1B
tetradic
#1B176C #6C173D #686C17 #176C45
square
#1B176C #6C173D #686C17 #176C45
split-complementary
#1B176C #6C4517 #3D6C17
monochromatic
#060519 #0E0C3A #1B176C #28229E #342CD1

Accessibility & contrast

On white

15.15
#1B176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1B176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B176C
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B176C#FFFFFF#000000##FFFFFF
##1B176C1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b176c;
/* rgb */ color: rgb(27, 23, 108);
/* oklch */ color: oklch(28.2% 0.140 274.7);
Tailwind
colors: {
  custom: {
    50: '#665597',
    500: '#1b176c',
    950: '#000000',
  },
}
SCSS
$custom: #1b176c;
$custom-light: #665597;
$custom-dark: #000000;
JSON
{
  "hex": "#1b176c",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 242.824,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2818,
    "c": 0.13988,
    "h": 274.7
  },
  "luminance": 0.01929
}

Semantic roles & 50–950 ramp

primary
#1B176C
secondary
#9DA23D
accent
#E840E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B176C

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

Preview Lab → · Contrast checker → · Palette generator →

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