#1B218F#1B218F

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

Color values

HEX#1B218F
RGBrgb(27, 33, 143)
HSLhsl(237, 68%, 33%)
HSVhsv(237, 81%, 56%)
CMYKcmyk(81.1%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.22, 38.13, -60.39)
CIE-LCHlch(21.22, 71.42, 302.26°)
OKLaboklab(33.69% 0.0002 -0.1749)
OKLCHoklch(33.69% 0.175 270.1)
XYZxyz(5.9521, 3.3032, 26.3052)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B218F #8F891B
analogous
#1B5B8F #1B218F #4F1B8F
triadic
#1B218F #8F1B21 #218F1B
tetradic
#1B218F #8F1B5B #8F891B #1B8F4F
square
#1B218F #8F1B5B #8F891B #1B8F4F
split-complementary
#1B218F #8F4F1B #5B8F1B
monochromatic
#080928 #11155C #1B218F #252DC2 #4850DC

Accessibility & contrast

On white

12.64
#1B218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B218F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B218F#FFFFFF#000000##FFFFFF
##1B218F1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b218f;
/* rgb */ color: rgb(27, 33, 143);
/* oklch */ color: oklch(33.7% 0.175 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e5eb1',
    500: '#1b218f',
    950: '#000000',
  },
}
SCSS
$custom: #1b218f;
$custom-light: #6e5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b218f",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 236.897,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33694,
    "c": 0.17493,
    "h": 270.1
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#1B218F
secondary
#BEB848
accent
#E23DEB
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1B218F

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

Preview Lab → · Contrast checker → · Palette generator →

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