#1B226B#1B226B

#1B226B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.125 H 272.0°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#1B226B
RGBrgb(27, 34, 107)
HSLhsl(235, 60%, 26%)
HSVhsv(235, 75%, 42%)
CMYKcmyk(74.8%, 68.2%, 0%, 58%)
CIE-LABlab(17.64, 24.12, -43.39)
CIE-LCHlch(17.64, 49.64, 299.07°)
OKLaboklab(29.97% 0.0044 -0.1254)
OKLCHoklch(29.97% 0.125 272)
XYZxyz(3.6770, 2.4382, 14.1839)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B226B #6B641B
analogous
#1B4A6B #1B226B #3C1B6B
triadic
#1B226B #6B1B22 #226B1B
tetradic
#1B226B #6B1B4A #6B641B #1B6B3C
square
#1B226B #6B1B4A #6B641B #1B6B3C
split-complementary
#1B226B #6B3C1B #4A6B1B
monochromatic
#060818 #0F123A #1B226B #27329C #3542CC

Accessibility & contrast

On white

14.11
#1B226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1B226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B226B
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B226B#FFFFFF#000000##FFFFFF
##1B226B1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b226b;
/* rgb */ color: rgb(27, 34, 107);
/* oklch */ color: oklch(30.0% 0.125 272.0);
Tailwind
colors: {
  custom: {
    50: '#645d96',
    500: '#1b226b',
    950: '#000000',
  },
}
SCSS
$custom: #1b226b;
$custom-light: #645d96;
$custom-dark: #000000;
JSON
{
  "hex": "#1b226b",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 234.75,
    "s": 59.701,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2997,
    "c": 0.12544,
    "h": 272
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#1B226B
secondary
#A09842
accent
#D545E3
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #1B226B

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

Preview Lab → · Contrast checker → · Palette generator →

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