#1B3FA6#1B3FA6

#1B3FA6 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.3% C 0.171 H 264.8°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#1B3FA6
RGBrgb(27, 63, 166)
HSLhsl(224, 72%, 38%)
HSVhsv(224, 84%, 65%)
CMYKcmyk(83.7%, 62%, 0%, 34.9%)
CIE-LABlab(30.74, 27.37, -58.80)
CIE-LCHlch(30.74, 64.86, 294.96°)
OKLaboklab(41.32% -0.0153 -0.1702)
OKLCHoklch(41.32% 0.171 264.8)
XYZxyz(9.1100, 6.5401, 36.8512)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3FA6 #A6821B
analogous
#1B85A6 #1B3FA6 #3C1BA6
triadic
#1B3FA6 #A61B3F #3FA61B
tetradic
#1B3FA6 #A61B85 #A6821B #1BA63C
square
#1B3FA6 #A61B85 #A6821B #1BA63C
split-complementary
#1B3FA6 #A63C1B #85A61B
monochromatic
#0A173D #122B71 #1B3FA6 #2453DB #587CE4

Accessibility & contrast

On white

9.10
#1B3FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1B3FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3FA6
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3FA6#FFFFFF#000000##FFFFFF
##1B3FA61.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1b3fa6;
/* rgb */ color: rgb(27, 63, 166);
/* oklch */ color: oklch(41.3% 0.171 264.8);
Tailwind
colors: {
  custom: {
    50: '#7273c1',
    500: '#1b3fa6',
    950: '#000000',
  },
}
SCSS
$custom: #1b3fa6;
$custom-light: #7273c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3fa6",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 224.46,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41315,
    "c": 0.17086,
    "h": 264.8
  },
  "luminance": 0.06541
}

Semantic roles & 50–950 ramp

primary
#1B3FA6
secondary
#C7AA56
accent
#C039EF
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1B3FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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