#1B165F#1B165F

#1B165F is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.6% C 0.123 H 276.9°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#1B165F
RGBrgb(27, 22, 95)
HSLhsl(244, 62%, 23%)
HSVhsv(244, 77%, 37%)
CMYKcmyk(71.6%, 76.8%, 0%, 62.7%)
CIE-LABlab(13.43, 27.64, -42.39)
CIE-LCHlch(13.43, 50.60, 303.11°)
OKLaboklab(26.55% 0.0149 -0.1224)
OKLCHoklch(26.55% 0.123 276.9)
XYZxyz(2.8038, 1.6328, 10.9917)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B165F #5A5F16
analogous
#16355F #1B165F #3F165F
triadic
#1B165F #5F1B16 #165F1B
tetradic
#1B165F #5F1635 #5A5F16 #165F3F
square
#1B165F #5F1635 #5A5F16 #165F3F
split-complementary
#1B165F #5F3F16 #355F16
monochromatic
#070619 #0D0A2D #1B165F #292291 #372DC2

Accessibility & contrast

On white

15.83
#1B165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B165F
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B165F#FFFFFF#000000##FFFFFF
##1B165F1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#001F5E
Tritanopia (blue-blind)
#002A39
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1b165f;
/* rgb */ color: rgb(27, 22, 95);
/* oklch */ color: oklch(26.6% 0.123 276.9);
Tailwind
colors: {
  custom: {
    50: '#62548d',
    500: '#1b165f',
    950: '#000000',
  },
}
SCSS
$custom: #1b165f;
$custom-light: #62548d;
$custom-dark: #000000;
JSON
{
  "hex": "#1b165f",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 244.11,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26553,
    "c": 0.12333,
    "h": 276.9
  },
  "luminance": 0.01633
}

Semantic roles & 50–950 ramp

primary
#1B165F
secondary
#90963B
accent
#E542DA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1B165F

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

Preview Lab → · Contrast checker → · Palette generator →

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