#1B3F9F#1B3F9F

#1B3F9F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.7% C 0.161 H 264.5°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#1B3F9F
RGBrgb(27, 63, 159)
HSLhsl(224, 71%, 36%)
HSVhsv(224, 83%, 62%)
CMYKcmyk(83%, 60.4%, 0%, 37.6%)
CIE-LABlab(30.13, 24.62, -55.56)
CIE-LCHlch(30.13, 60.77, 293.90°)
OKLaboklab(40.68% -0.0155 -0.1607)
OKLCHoklch(40.68% 0.161 264.5)
XYZxyz(8.4853, 6.2902, 33.5611)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F9F #9F7B1B
analogous
#1B819F #1B3F9F #391B9F
triadic
#1B3F9F #9F1B3F #3F9F1B
tetradic
#1B3F9F #9F1B81 #9F7B1B #1B9F39
square
#1B3F9F #9F1B81 #9F7B1B #1B9F39
split-complementary
#1B3F9F #9F391B #819F1B
monochromatic
#091636 #122A6B #1B3F9F #2454D3 #537AE2

Accessibility & contrast

On white

9.30
#1B3F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1B3F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3F9F
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F9F#FFFFFF#000000##FFFFFF
##1B3F9F1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005868
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1b3f9f;
/* rgb */ color: rgb(27, 63, 159);
/* oklch */ color: oklch(40.7% 0.161 264.5);
Tailwind
colors: {
  custom: {
    50: '#7073bc',
    500: '#1b3f9f',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f9f;
$custom-light: #7073bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f9f",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 223.636,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40679,
    "c": 0.16143,
    "h": 264.5
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#1B3F9F
secondary
#C5A551
accent
#BD3AEE
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1B3F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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