#1B226A#1B226A

#1B226A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.124 H 272.1°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#1B226A
RGBrgb(27, 34, 106)
HSLhsl(235, 59%, 26%)
HSVhsv(235, 75%, 42%)
CMYKcmyk(74.5%, 67.9%, 0%, 58.4%)
CIE-LABlab(17.54, 23.73, -42.90)
CIE-LCHlch(17.54, 49.02, 298.95°)
OKLaboklab(29.87% 0.0045 -0.1239)
OKLCHoklch(29.87% 0.124 272.1)
XYZxyz(3.6247, 2.4173, 13.9084)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B226A #6A631B
analogous
#1B496A #1B226A #3B1B6A
triadic
#1B226A #6A1B22 #226A1B
tetradic
#1B226A #6A1B49 #6A631B #1B6A3B
square
#1B226A #6A1B49 #6A631B #1B6A3B
split-complementary
#1B226A #6A3B1B #496A1B
monochromatic
#060818 #0F1239 #1B226A #27329B #3441CB

Accessibility & contrast

On white

14.15
#1B226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#1B226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B226A
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B226A#FFFFFF#000000##FFFFFF
##1B226A1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#003542
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b226a;
/* rgb */ color: rgb(27, 34, 106);
/* oklch */ color: oklch(29.9% 0.124 272.1);
Tailwind
colors: {
  custom: {
    50: '#645d95',
    500: '#1b226a',
    950: '#000000',
  },
}
SCSS
$custom: #1b226a;
$custom-light: #645d95;
$custom-dark: #000000;
JSON
{
  "hex": "#1b226a",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 234.684,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.2987,
    "c": 0.12399,
    "h": 272.1
  },
  "luminance": 0.02418
}

Semantic roles & 50–950 ramp

primary
#1B226A
secondary
#9F9742
accent
#D545E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1B226A

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

Preview Lab → · Contrast checker → · Palette generator →

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