#1B3A8D#1B3A8D

#1B3A8D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.0% C 0.143 H 264.8°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#1B3A8D
RGBrgb(27, 58, 141)
HSLhsl(224, 68%, 33%)
HSVhsv(224, 81%, 55%)
CMYKcmyk(80.9%, 58.9%, 0%, 44.7%)
CIE-LABlab(27.25, 20.87, -49.26)
CIE-LCHlch(27.25, 53.50, 292.96°)
OKLaboklab(38.04% -0.013 -0.1423)
OKLCHoklch(38.04% 0.143 264.8)
XYZxyz(6.7711, 5.1814, 25.8374)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3A8D #8D6E1B
analogous
#1B738D #1B3A8D #351B8D
triadic
#1B3A8D #8D1B3A #3A8D1B
tetradic
#1B3A8D #8D1B73 #8D6E1B #1B8D35
square
#1B3A8D #8D1B73 #8D6E1B #1B8D35
split-complementary
#1B3A8D #8D351B #738D1B
monochromatic
#071026 #11255A #1B3A8D #254FC0 #476FDC

Accessibility & contrast

On white

10.31
#1B3A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1B3A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3A8D
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3A8D#FFFFFF#000000##FFFFFF
##1B3A8D1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b3a8d;
/* rgb */ color: rgb(27, 58, 141);
/* oklch */ color: oklch(38.0% 0.143 264.8);
Tailwind
colors: {
  custom: {
    50: '#6b6faf',
    500: '#1b3a8d',
    950: '#000000',
  },
}
SCSS
$custom: #1b3a8d;
$custom-light: #6b6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3a8d",
  "rgb": {
    "r": 27,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 223.684,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38044,
    "c": 0.14286,
    "h": 264.8
  },
  "luminance": 0.05182
}

Semantic roles & 50–950 ramp

primary
#1B3A8D
secondary
#BD9D46
accent
#BC3DEB
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1B3A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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