#1B175A#1B175A

#1B175A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.2% C 0.115 H 277.5°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#1B175A
RGBrgb(27, 23, 90)
HSLhsl(244, 59%, 22%)
HSVhsv(244, 74%, 35%)
CMYKcmyk(70%, 74.4%, 0%, 64.7%)
CIE-LABlab(13.13, 25.15, -39.52)
CIE-LCHlch(13.13, 46.85, 302.47°)
OKLaboklab(26.18% 0.0151 -0.1141)
OKLCHoklch(26.18% 0.115 277.5)
XYZxyz(2.6033, 1.5838, 9.8394)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B175A #565A17
analogous
#17355A #1B175A #3D175A
triadic
#1B175A #5A1B17 #175A1B
tetradic
#1B175A #5A1735 #565A17 #175A3D
square
#1B175A #5A1735 #565A17 #175A3D
split-complementary
#1B175A #5A3D17 #355A17
monochromatic
#070618 #0C0B29 #1B175A #2A238B #3830BB

Accessibility & contrast

On white

15.95
#1B175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1B175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B175A
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B175A#FFFFFF#000000##FFFFFF
##1B175A1.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#001F59
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1b175a;
/* rgb */ color: rgb(27, 23, 90);
/* oklch */ color: oklch(26.2% 0.115 277.5);
Tailwind
colors: {
  custom: {
    50: '#615489',
    500: '#1b175a',
    950: '#000000',
  },
}
SCSS
$custom: #1b175a;
$custom-light: #615489;
$custom-dark: #000000;
JSON
{
  "hex": "#1b175a",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 243.582,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26178,
    "c": 0.11506,
    "h": 277.5
  },
  "luminance": 0.01584
}

Semantic roles & 50–950 ramp

primary
#1B175A
secondary
#8C913C
accent
#E245D9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #1B175A

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

Preview Lab → · Contrast checker → · Palette generator →

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