#1B175E#1B175E

#1B175E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.6% C 0.121 H 276.8°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#1B175E
RGBrgb(27, 23, 94)
HSLhsl(243, 61%, 23%)
HSVhsv(243, 76%, 37%)
CMYKcmyk(71.3%, 75.5%, 0%, 63.1%)
CIE-LABlab(13.55, 26.63, -41.51)
CIE-LCHlch(13.55, 49.32, 302.68°)
OKLaboklab(26.61% 0.0144 -0.1199)
OKLCHoklch(26.61% 0.121 276.8)
XYZxyz(2.7781, 1.6537, 10.7603)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B175E #5A5E17
analogous
#17365E #1B175E #3E175E
triadic
#1B175E #5E1B17 #175E1B
tetradic
#1B175E #5E1736 #5A5E17 #175E3E
square
#1B175E #5E1736 #5A5E17 #175E3E
split-complementary
#1B175E #5E3E17 #365E17
monochromatic
#070619 #0D0B2D #1B175E #29238F #372FC0

Accessibility & contrast

On white

15.78
#1B175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1B175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B175E
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B175E#FFFFFF#000000##FFFFFF
##1B175E1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1b175e;
/* rgb */ color: rgb(27, 23, 94);
/* oklch */ color: oklch(26.6% 0.121 276.8);
Tailwind
colors: {
  custom: {
    50: '#62558c',
    500: '#1b175e',
    950: '#000000',
  },
}
SCSS
$custom: #1b175e;
$custom-light: #62558c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b175e",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 243.38,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.2661,
    "c": 0.12074,
    "h": 276.8
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

primary
#1B175E
secondary
#90953C
accent
#E444DB
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1B175E

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

Preview Lab → · Contrast checker → · Palette generator →

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