#1B227E#1B227E

#1B227E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.152 H 270.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#1B227E
RGBrgb(27, 34, 126)
HSLhsl(236, 65%, 30%)
HSVhsv(236, 79%, 49%)
CMYKcmyk(78.6%, 73%, 0%, 50.6%)
CIE-LABlab(19.57, 31.36, -52.44)
CIE-LCHlch(19.57, 61.10, 300.88°)
OKLaboklab(31.96% 0.0024 -0.1518)
OKLCHoklch(31.96% 0.152 270.9)
XYZxyz(4.7886, 2.8829, 20.0387)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B227E #7E771B
analogous
#1B537E #1B227E #461B7E
triadic
#1B227E #7E1B22 #227E1B
tetradic
#1B227E #7E1B53 #7E771B #1B7E46
square
#1B227E #7E1B53 #7E771B #1B7E46
split-complementary
#1B227E #7E461B #537E1B
monochromatic
#050719 #10144C #1B227E #2630B0 #3E49D6

Accessibility & contrast

On white

13.32
#1B227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1B227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B227E
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B227E#FFFFFF#000000##FFFFFF
##1B227E1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1b227e;
/* rgb */ color: rgb(27, 34, 126);
/* oklch */ color: oklch(32.0% 0.152 270.9);
Tailwind
colors: {
  custom: {
    50: '#695da4',
    500: '#1b227e',
    950: '#000000',
  },
}
SCSS
$custom: #1b227e;
$custom-light: #695da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b227e",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 235.758,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.31958,
    "c": 0.15181,
    "h": 270.9
  },
  "luminance": 0.02883
}

Semantic roles & 50–950 ramp

primary
#1B227E
secondary
#B2AA43
accent
#DC40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1B227E

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

Preview Lab → · Contrast checker → · Palette generator →

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