#1B175F#1B175F

#1B175F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.7% C 0.122 H 276.7°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#1B175F
RGBrgb(27, 23, 95)
HSLhsl(243, 61%, 23%)
HSVhsv(243, 76%, 37%)
CMYKcmyk(71.6%, 75.8%, 0%, 62.7%)
CIE-LABlab(13.66, 27.00, -42.00)
CIE-LCHlch(13.66, 49.93, 302.73°)
OKLaboklab(26.72% 0.0142 -0.1213)
OKLCHoklch(26.72% 0.122 276.7)
XYZxyz(2.8233, 1.6718, 10.9982)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B175F #5B5F17
analogous
#17375F #1B175F #3F175F
triadic
#1B175F #5F1B17 #175F1B
tetradic
#1B175F #5F1737 #5B5F17 #175F3F
square
#1B175F #5F1737 #5B5F17 #175F3F
split-complementary
#1B175F #5F3F17 #375F17
monochromatic
#070619 #0D0B2E #1B175F #292390 #372FC2

Accessibility & contrast

On white

15.74
#1B175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B175F
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B175F#FFFFFF#000000##FFFFFF
##1B175F1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1b175f;
/* rgb */ color: rgb(27, 23, 95);
/* oklch */ color: oklch(26.7% 0.122 276.7);
Tailwind
colors: {
  custom: {
    50: '#62558d',
    500: '#1b175f',
    950: '#000000',
  },
}
SCSS
$custom: #1b175f;
$custom-light: #62558d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b175f",
  "rgb": {
    "r": 27,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 243.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26719,
    "c": 0.12214,
    "h": 276.7
  },
  "luminance": 0.01672
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B175F

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

Preview Lab → · Contrast checker → · Palette generator →

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