#1B228D#1B228D

#1B228D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.171 H 270.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#1B228D
RGBrgb(27, 34, 141)
HSLhsl(236, 68%, 33%)
HSVhsv(236, 81%, 55%)
CMYKcmyk(80.9%, 75.9%, 0%, 44.7%)
CIE-LABlab(21.21, 36.82, -59.17)
CIE-LCHlch(21.21, 69.69, 301.89°)
OKLaboklab(33.62% 0.0002 -0.1714)
OKLCHoklch(33.62% 0.171 270.1)
XYZxyz(5.8301, 3.2995, 25.5237)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B228D #8D861B
analogous
#1B5B8D #1B228D #4D1B8D
triadic
#1B228D #8D1B22 #228D1B
tetradic
#1B228D #8D1B5B #8D861B #1B8D4D
square
#1B228D #8D1B5B #8D861B #1B8D4D
split-complementary
#1B228D #8D4D1B #5B8D1B
monochromatic
#070926 #11165A #1B228D #252EC0 #4750DC

Accessibility & contrast

On white

12.65
#1B228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1B228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B228D
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B228D#FFFFFF#000000##FFFFFF
##1B228D1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b228d;
/* rgb */ color: rgb(27, 34, 141);
/* oklch */ color: oklch(33.6% 0.171 270.1);
Tailwind
colors: {
  custom: {
    50: '#6d5eb0',
    500: '#1b228d',
    950: '#000000',
  },
}
SCSS
$custom: #1b228d;
$custom-light: #6d5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b228d",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 236.316,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33617,
    "c": 0.17139,
    "h": 270.1
  },
  "luminance": 0.033
}

Semantic roles & 50–950 ramp

primary
#1B228D
secondary
#BDB646
accent
#E03DEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080411
muted
#7B7980

Preview Lab

Preview with #1B228D

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

Preview Lab → · Contrast checker → · Palette generator →

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