#1B227A#1B227A

#1B227A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.146 H 271.1°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#1B227A
RGBrgb(27, 34, 122)
HSLhsl(236, 64%, 29%)
HSVhsv(236, 78%, 48%)
CMYKcmyk(77.9%, 72.1%, 0%, 52.2%)
CIE-LABlab(19.15, 29.86, -50.58)
CIE-LCHlch(19.15, 58.74, 300.55°)
OKLaboklab(31.53% 0.0029 -0.1464)
OKLCHoklch(31.53% 0.146 271.1)
XYZxyz(4.5357, 2.7817, 18.7065)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B227A #7A731B
analogous
#1B527A #1B227A #441B7A
triadic
#1B227A #7A1B22 #227A1B
tetradic
#1B227A #7A1B52 #7A731B #1B7A44
square
#1B227A #7A1B52 #7A731B #1B7A44
split-complementary
#1B227A #7A441B #527A1B
monochromatic
#060719 #101448 #1B227A #2630AC #3C47D4

Accessibility & contrast

On white

13.49
#1B227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1B227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B227A
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B227A#FFFFFF#000000##FFFFFF
##1B227A1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b227a;
/* rgb */ color: rgb(27, 34, 122);
/* oklch */ color: oklch(31.5% 0.146 271.1);
Tailwind
colors: {
  custom: {
    50: '#685da1',
    500: '#1b227a',
    950: '#000000',
  },
}
SCSS
$custom: #1b227a;
$custom-light: #685da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b227a",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 235.579,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31528,
    "c": 0.14642,
    "h": 271.1
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#1B227A
secondary
#AEA643
accent
#DB41E7
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B227A

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

Preview Lab → · Contrast checker → · Palette generator →

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