#1B3166#1B3166

#1B3166 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.8% C 0.097 H 264.6°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#1B3166
RGBrgb(27, 49, 102)
HSLhsl(222, 58%, 25%)
HSVhsv(222, 74%, 40%)
CMYKcmyk(73.5%, 52%, 0%, 60%)
CIE-LABlab(21.54, 11.36, -33.80)
CIE-LCHlch(21.54, 35.66, 288.58°)
OKLaboklab(32.76% -0.0091 -0.097)
OKLCHoklch(32.76% 0.097 264.6)
XYZxyz(3.9477, 3.3885, 13.0138)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3166 #66501B
analogous
#1B5666 #1B3166 #2A1B66
triadic
#1B3166 #661B31 #31661B
tetradic
#1B3166 #661B56 #66501B #1B662A
square
#1B3166 #661B56 #66501B #1B662A
split-complementary
#1B3166 #662A1B #56661B
monochromatic
#060C18 #0E1A36 #1B3166 #284896 #355FC7

Accessibility & contrast

On white

12.52
#1B3166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1B3166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3166
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3166#FFFFFF#000000##FFFFFF
##1B31661.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143768
Deuteranopia (green-blind)
#013065
Tritanopia (blue-blind)
#003D46
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b3166;
/* rgb */ color: rgb(27, 49, 102);
/* oklch */ color: oklch(32.8% 0.097 264.6);
Tailwind
colors: {
  custom: {
    50: '#626892',
    500: '#1b3166',
    950: '#000000',
  },
}
SCSS
$custom: #1b3166;
$custom-light: #626892;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3166",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 102
  },
  "hsl": {
    "h": 222.4,
    "s": 58.14,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32756,
    "c": 0.09739,
    "h": 264.6
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#1B3166
secondary
#9B8141
accent
#B446E1
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #1B3166

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

Preview Lab → · Contrast checker → · Palette generator →

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