#1B3A7F#1B3A7F

#1B3A7F is a dark, vivid blue. Relative luminance 0.048; OKLCH L 36.9% C 0.123 H 263.4°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#1B3A7F
RGBrgb(27, 58, 127)
HSLhsl(221, 65%, 30%)
HSVhsv(221, 79%, 50%)
CMYKcmyk(78.7%, 54.3%, 0%, 50.2%)
CIE-LABlab(26.13, 15.19, -42.35)
CIE-LCHlch(26.13, 44.99, 289.73°)
OKLaboklab(36.85% -0.0141 -0.1219)
OKLCHoklch(36.85% 0.123 263.4)
XYZxyz(5.7944, 4.7908, 20.6939)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3A7F #7F601B
analogous
#1B6C7F #1B3A7F #2E1B7F
triadic
#1B3A7F #7F1B3A #3A7F1B
tetradic
#1B3A7F #7F1B6C #7F601B #1B7F2E
square
#1B3A7F #7F1B6C #7F601B #1B7F2E
split-complementary
#1B3A7F #7F2E1B #6C7F1B
monochromatic
#060C1A #10234D #1B3A7F #2651B1 #3E6DD6

Accessibility & contrast

On white

10.72
#1B3A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1B3A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3A7F
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3A7F#FFFFFF#000000##FFFFFF
##1B3A7F1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094381
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#004B56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1b3a7f;
/* rgb */ color: rgb(27, 58, 127);
/* oklch */ color: oklch(36.9% 0.123 263.4);
Tailwind
colors: {
  custom: {
    50: '#686fa5',
    500: '#1b3a7f',
    950: '#000000',
  },
}
SCSS
$custom: #1b3a7f;
$custom-light: #686fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3a7f",
  "rgb": {
    "r": 27,
    "g": 58,
    "b": 127
  },
  "hsl": {
    "h": 221.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3685,
    "c": 0.12277,
    "h": 263.4
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#1B3A7F
secondary
#B39043
accent
#B440E8
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1B3A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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