#1B3370#1B3370

#1B3370 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.0% C 0.110 H 264.9°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#1B3370
RGBrgb(27, 51, 112)
HSLhsl(223, 61%, 27%)
HSVhsv(223, 76%, 44%)
CMYKcmyk(75.9%, 54.5%, 0%, 56.1%)
CIE-LABlab(22.90, 14.02, -38.07)
CIE-LCHlch(22.90, 40.57, 290.22°)
OKLaboklab(34.03% -0.0097 -0.1095)
OKLCHoklch(34.03% 0.11 264.9)
XYZxyz(4.5594, 3.7700, 15.8135)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3370 #70581B
analogous
#1B5E70 #1B3370 #2E1B70
triadic
#1B3370 #701B33 #33701B
tetradic
#1B3370 #701B5E #70581B #1B702E
square
#1B3370 #701B5E #70581B #1B702E
split-complementary
#1B3370 #702E1B #5E701B
monochromatic
#060B19 #0F1D3F #1B3370 #2749A1 #3762CF

Accessibility & contrast

On white

11.97
#1B3370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1B3370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3370
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3370#FFFFFF#000000##FFFFFF
##1B33701.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B72
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#00424C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b3370;
/* rgb */ color: rgb(27, 51, 112);
/* oklch */ color: oklch(34.0% 0.110 264.9);
Tailwind
colors: {
  custom: {
    50: '#646a9a',
    500: '#1b3370',
    950: '#000000',
  },
}
SCSS
$custom: #1b3370;
$custom-light: #646a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3370",
  "rgb": {
    "r": 27,
    "g": 51,
    "b": 112
  },
  "hsl": {
    "h": 223.059,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3403,
    "c": 0.10991,
    "h": 264.9
  },
  "luminance": 0.03771
}

Semantic roles & 50–950 ramp

primary
#1B3370
secondary
#A58942
accent
#B744E4
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1B3370

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

Preview Lab → · Contrast checker → · Palette generator →

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