#1B179E#1B179E

#1B179E is a dark, highly saturated blue. Relative luminance 0.033; OKLCH L 34.2% C 0.201 H 269.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#1B179E
RGBrgb(27, 23, 158)
HSLhsl(242, 75%, 35%)
HSVhsv(242, 85%, 62%)
CMYKcmyk(82.9%, 85.4%, 0%, 38%)
CIE-LABlab(21.26, 48.26, -69.58)
CIE-LCHlch(21.26, 84.68, 304.75°)
OKLaboklab(34.25% -0.0003 -0.2014)
OKLCHoklch(34.25% 0.201 269.9)
XYZxyz(6.9279, 3.3136, 32.6156)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B179E #9A9E17
analogous
#17569E #1B179E #5E179E
triadic
#1B179E #9E1B17 #179E1B
tetradic
#1B179E #9E1756 #9A9E17 #179E5E
square
#1B179E #9E1756 #9A9E17 #179E5E
split-complementary
#1B179E #9E5E17 #569E17
monochromatic
#090733 #120F69 #1B179E #241FD3 #4F4BE5

Accessibility & contrast

On white

12.63
#1B179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1B179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B179E
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B179E#FFFFFF#000000##FFFFFF
##1B179E1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002C9C
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b179e;
/* rgb */ color: rgb(27, 23, 158);
/* oklch */ color: oklch(34.2% 0.201 269.9);
Tailwind
colors: {
  custom: {
    50: '#7359bc',
    500: '#1b179e',
    950: '#000000',
  },
}
SCSS
$custom: #1b179e;
$custom-light: #7359bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b179e",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 241.778,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34247,
    "c": 0.20137,
    "h": 269.9
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#1B179E
secondary
#C3C64A
accent
#F137EC
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1B179E

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

Preview Lab → · Contrast checker → · Palette generator →

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