#1B2170#1B2170

#1B2170 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.134 H 272.0°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#1B2170
RGBrgb(27, 33, 112)
HSLhsl(236, 61%, 27%)
HSVhsv(236, 76%, 44%)
CMYKcmyk(75.9%, 70.5%, 0%, 56.1%)
CIE-LABlab(17.87, 26.73, -46.25)
CIE-LCHlch(17.87, 53.42, 300.03°)
OKLaboklab(30.29% 0.0047 -0.1337)
OKLCHoklch(30.29% 0.134 272)
XYZxyz(3.9195, 2.4902, 15.6002)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2170 #706A1B
analogous
#1B4B70 #1B2170 #401B70
triadic
#1B2170 #701B21 #21701B
tetradic
#1B2170 #701B4B #706A1B #1B7040
square
#1B2170 #701B4B #706A1B #1B7040
split-complementary
#1B2170 #70401B #4B701B
monochromatic
#060719 #0F123F #1B2170 #2730A1 #3741CF

Accessibility & contrast

On white

14.02
#1B2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1B2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2170
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2170#FFFFFF#000000##FFFFFF
##1B21701.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b2170;
/* rgb */ color: rgb(27, 33, 112);
/* oklch */ color: oklch(30.3% 0.134 272.0);
Tailwind
colors: {
  custom: {
    50: '#665c9a',
    500: '#1b2170',
    950: '#000000',
  },
}
SCSS
$custom: #1b2170;
$custom-light: #665c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2170",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 235.765,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30294,
    "c": 0.13381,
    "h": 272
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#1B2170
secondary
#A59E42
accent
#D944E4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B2170

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

Preview Lab → · Contrast checker → · Palette generator →

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