#1B179F#1B179F

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

Color values

HEX#1B179F
RGBrgb(27, 23, 159)
HSLhsl(242, 75%, 36%)
HSVhsv(242, 86%, 62%)
CMYKcmyk(83%, 85.5%, 0%, 37.6%)
CIE-LABlab(21.39, 48.57, -69.98)
CIE-LCHlch(21.39, 85.18, 304.76°)
OKLaboklab(34.37% -0.0005 -0.2025)
OKLCHoklch(34.37% 0.203 269.9)
XYZxyz(7.0143, 3.3482, 33.0707)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B179F #9B9F17
analogous
#17579F #1B179F #5F179F
triadic
#1B179F #9F1B17 #179F1B
tetradic
#1B179F #9F1757 #9B9F17 #179F5F
square
#1B179F #9F1757 #9B9F17 #179F5F
split-complementary
#1B179F #9F5F17 #579F17
monochromatic
#090834 #120F6A #1B179F #241FD4 #504BE5

Accessibility & contrast

On white

12.58
#1B179F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1B179F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B179F
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B179F#FFFFFF#000000##FFFFFF
##1B179F1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002C9D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b179f;
/* rgb */ color: rgb(27, 23, 159);
/* oklch */ color: oklch(34.4% 0.203 269.9);
Tailwind
colors: {
  custom: {
    50: '#7359bd',
    500: '#1b179f',
    950: '#000000',
  },
}
SCSS
$custom: #1b179f;
$custom-light: #7359bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1b179f",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 159
  },
  "hsl": {
    "h": 241.765,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34373,
    "c": 0.20252,
    "h": 269.9
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#1B179F
secondary
#C3C74B
accent
#F136EC
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1B179F

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

Preview Lab → · Contrast checker → · Palette generator →

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