#1B165E#1B165E

#1B165E is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.4% C 0.122 H 277.1°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#1B165E
RGBrgb(27, 22, 94)
HSLhsl(244, 62%, 23%)
HSVhsv(244, 77%, 37%)
CMYKcmyk(71.3%, 76.6%, 0%, 63.1%)
CIE-LABlab(13.32, 27.28, -41.90)
CIE-LCHlch(13.32, 50.00, 303.07°)
OKLaboklab(26.44% 0.0151 -0.121)
OKLCHoklch(26.44% 0.122 277.1)
XYZxyz(2.7586, 1.6147, 10.7538)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B165E #595E16
analogous
#16355E #1B165E #3F165E
triadic
#1B165E #5E1B16 #165E1B
tetradic
#1B165E #5E1635 #595E16 #165E3F
square
#1B165E #5E1635 #595E16 #165E3F
split-complementary
#1B165E #5E3F16 #355E16
monochromatic
#070619 #0D0A2C #1B165E #292290 #372DC1

Accessibility & contrast

On white

15.87
#1B165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B165E
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B165E#FFFFFF#000000##FFFFFF
##1B165E1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1b165e;
/* rgb */ color: rgb(27, 22, 94);
/* oklch */ color: oklch(26.4% 0.122 277.1);
Tailwind
colors: {
  custom: {
    50: '#62548c',
    500: '#1b165e',
    950: '#000000',
  },
}
SCSS
$custom: #1b165e;
$custom-light: #62548c;
$custom-dark: #000000;
JSON
{
  "hex": "#1b165e",
  "rgb": {
    "r": 27,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 244.167,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26442,
    "c": 0.12194,
    "h": 277.1
  },
  "luminance": 0.01615
}

Semantic roles & 50–950 ramp

primary
#1B165E
secondary
#8F953B
accent
#E543DA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1B165E

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

Preview Lab → · Contrast checker → · Palette generator →

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