#1B227B#1B227B

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

Color values

HEX#1B227B
RGBrgb(27, 34, 123)
HSLhsl(236, 64%, 29%)
HSVhsv(236, 78%, 48%)
CMYKcmyk(78%, 72.4%, 0%, 51.8%)
CIE-LABlab(19.25, 30.24, -51.05)
CIE-LCHlch(19.25, 59.33, 300.64°)
OKLaboklab(31.64% 0.0028 -0.1477)
OKLCHoklch(31.64% 0.148 271.1)
XYZxyz(4.5980, 2.8066, 19.0345)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B227B #7B741B
analogous
#1B527B #1B227B #441B7B
triadic
#1B227B #7B1B22 #227B1B
tetradic
#1B227B #7B1B52 #7B741B #1B7B44
square
#1B227B #7B1B52 #7B741B #1B7B44
split-complementary
#1B227B #7B441B #527B1B
monochromatic
#060719 #101449 #1B227B #2630AD #3C47D4

Accessibility & contrast

On white

13.45
#1B227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B227B
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B227B#FFFFFF#000000##FFFFFF
##1B227B1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b227b;
/* rgb */ color: rgb(27, 34, 123);
/* oklch */ color: oklch(31.6% 0.148 271.1);
Tailwind
colors: {
  custom: {
    50: '#695da2',
    500: '#1b227b',
    950: '#000000',
  },
}
SCSS
$custom: #1b227b;
$custom-light: #695da2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b227b",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 235.625,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31635,
    "c": 0.14777,
    "h": 271.1
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#1B227B
secondary
#AFA743
accent
#DB41E7
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B227B

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

Preview Lab → · Contrast checker → · Palette generator →

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