#1B3F9B#1B3F9B

#1B3F9B is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.156 H 264.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#1B3F9B
RGBrgb(27, 63, 155)
HSLhsl(223, 70%, 36%)
HSVhsv(223, 83%, 61%)
CMYKcmyk(82.6%, 59.4%, 0%, 39.2%)
CIE-LABlab(29.80, 23.03, -53.68)
CIE-LCHlch(29.80, 58.41, 293.22°)
OKLaboklab(40.32% -0.0157 -0.1552)
OKLCHoklch(40.32% 0.156 264.2)
XYZxyz(8.1438, 6.1536, 31.7625)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F9B #9B771B
analogous
#1B7F9B #1B3F9B #371B9B
triadic
#1B3F9B #9B1B3F #3F9B1B
tetradic
#1B3F9B #9B1B7F #9B771B #1B9B37
square
#1B3F9B #9B1B7F #9B771B #1B9B37
split-complementary
#1B3F9B #9B371B #7F9B1B
monochromatic
#091533 #122A67 #1B3F9B #2454CF #5079E0

Accessibility & contrast

On white

9.41
#1B3F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1B3F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3F9B
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F9B#FFFFFF#000000##FFFFFF
##1B3F9B1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1b3f9b;
/* rgb */ color: rgb(27, 63, 155);
/* oklch */ color: oklch(40.3% 0.156 264.2);
Tailwind
colors: {
  custom: {
    50: '#6f73b9',
    500: '#1b3f9b',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f9b;
$custom-light: #6f73b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f9b",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 155
  },
  "hsl": {
    "h": 223.125,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40322,
    "c": 0.15596,
    "h": 264.2
  },
  "luminance": 0.06155
}

Semantic roles & 50–950 ramp

primary
#1B3F9B
secondary
#C3A24F
accent
#BB3BED
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1B3F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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