#1B3FA8#1B3FA8

#1B3FA8 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.174 H 264.9°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#1B3FA8
RGBrgb(27, 63, 168)
HSLhsl(225, 72%, 38%)
HSVhsv(225, 84%, 66%)
CMYKcmyk(83.9%, 62.5%, 0%, 34.1%)
CIE-LABlab(30.91, 28.15, -59.71)
CIE-LCHlch(30.91, 66.02, 295.24°)
OKLaboklab(41.5% -0.0153 -0.1728)
OKLCHoklch(41.5% 0.174 264.9)
XYZxyz(9.2949, 6.6140, 37.8249)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3FA8 #A8841B
analogous
#1B85A8 #1B3FA8 #3D1BA8
triadic
#1B3FA8 #A81B3F #3FA81B
tetradic
#1B3FA8 #A81B85 #A8841B #1BA83D
square
#1B3FA8 #A81B85 #A8841B #1BA83D
split-complementary
#1B3FA8 #A83D1B #85A81B
monochromatic
#0A173F #132B73 #1B3FA8 #2453DC #597DE4

Accessibility & contrast

On white

9.04
#1B3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#1B3FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3FA8
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3FA8#FFFFFF#000000##FFFFFF
##1B3FA81.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1b3fa8;
/* rgb */ color: rgb(27, 63, 168);
/* oklch */ color: oklch(41.5% 0.174 264.9);
Tailwind
colors: {
  custom: {
    50: '#7273c3',
    500: '#1b3fa8',
    950: '#000000',
  },
}
SCSS
$custom: #1b3fa8;
$custom-light: #7273c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3fa8",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 224.681,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.415,
    "c": 0.17353,
    "h": 264.9
  },
  "luminance": 0.06615
}

Semantic roles & 50–950 ramp

primary
#1B3FA8
secondary
#C8AB57
accent
#C039EF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1B3FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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