#1B3A8A#1B3A8A

#1B3A8A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.139 H 264.5°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#1B3A8A
RGBrgb(27, 58, 138)
HSLhsl(223, 67%, 32%)
HSVhsv(223, 80%, 54%)
CMYKcmyk(80.4%, 58%, 0%, 45.9%)
CIE-LABlab(27.00, 19.66, -47.80)
CIE-LCHlch(27.00, 51.69, 292.36°)
OKLaboklab(37.78% -0.0132 -0.138)
OKLCHoklch(37.78% 0.139 264.5)
XYZxyz(6.5509, 5.0933, 24.6777)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3A8A #8A6B1B
analogous
#1B728A #1B3A8A #331B8A
triadic
#1B3A8A #8A1B3A #3A8A1B
tetradic
#1B3A8A #8A1B72 #8A6B1B #1B8A33
square
#1B3A8A #8A1B72 #8A6B1B #1B8A33
split-complementary
#1B3A8A #8A331B #728A1B
monochromatic
#070F24 #112457 #1B3A8A #2550BD #456FDB

Accessibility & contrast

On white

10.40
#1B3A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1B3A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3A8A
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3A8A#FFFFFF#000000##FFFFFF
##1B3A8A1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b3a8a;
/* rgb */ color: rgb(27, 58, 138);
/* oklch */ color: oklch(37.8% 0.139 264.5);
Tailwind
colors: {
  custom: {
    50: '#6a6fad',
    500: '#1b3a8a',
    950: '#000000',
  },
}
SCSS
$custom: #1b3a8a;
$custom-light: #6a6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3a8a",
  "rgb": {
    "r": 27,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 223.243,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37781,
    "c": 0.13862,
    "h": 264.5
  },
  "luminance": 0.05094
}

Semantic roles & 50–950 ramp

primary
#1B3A8A
secondary
#BC9B45
accent
#BA3EEA
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1B3A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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