#1B418E#1B418E

#1B418E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.6% C 0.135 H 262.3°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#1B418E
RGBrgb(27, 65, 142)
HSLhsl(220, 68%, 33%)
HSVhsv(220, 81%, 56%)
CMYKcmyk(81%, 54.2%, 0%, 44.3%)
CIE-LABlab(29.33, 16.41, -46.50)
CIE-LCHlch(29.33, 49.31, 289.44°)
OKLaboklab(39.64% -0.0181 -0.134)
OKLCHoklch(39.64% 0.135 262.3)
XYZxyz(7.2230, 5.9658, 26.3568)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B418E #8E681B
analogous
#1B7A8E #1B418E #2E1B8E
triadic
#1B418E #8E1B41 #418E1B
tetradic
#1B418E #8E1B7A #8E681B #1B8E2E
square
#1B418E #8E1B7A #8E681B #1B8E2E
split-complementary
#1B418E #8E2E1B #7A8E1B
monochromatic
#071227 #11295B #1B418E #2559C1 #4778DC

Accessibility & contrast

On white

9.57
#1B418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1B418E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B418E
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B418E#FFFFFF#000000##FFFFFF
##1B418E1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064B91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1b418e;
/* rgb */ color: rgb(27, 65, 142);
/* oklch */ color: oklch(39.6% 0.135 262.3);
Tailwind
colors: {
  custom: {
    50: '#6b75b0',
    500: '#1b418e',
    950: '#000000',
  },
}
SCSS
$custom: #1b418e;
$custom-light: #6b75b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b418e",
  "rgb": {
    "r": 27,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 220.174,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39641,
    "c": 0.13522,
    "h": 262.3
  },
  "luminance": 0.05967
}

Semantic roles & 50–950 ramp

primary
#1B418E
secondary
#BE9747
accent
#B13DEB
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1B418E

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

Preview Lab → · Contrast checker → · Palette generator →

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