#1B3F97#1B3F97

#1B3F97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.150 H 263.9°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#1B3F97
RGBrgb(27, 63, 151)
HSLhsl(223, 70%, 35%)
HSVhsv(223, 82%, 59%)
CMYKcmyk(82.1%, 58.3%, 0%, 40.8%)
CIE-LABlab(29.47, 21.43, -51.78)
CIE-LCHlch(29.47, 56.04, 292.48°)
OKLaboklab(39.97% -0.0159 -0.1496)
OKLCHoklch(39.97% 0.15 263.9)
XYZxyz(7.8134, 6.0215, 30.0226)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3F97 #97731B
analogous
#1B7D97 #1B3F97 #351B97
triadic
#1B3F97 #971B3F #3F971B
tetradic
#1B3F97 #971B7D #97731B #1B9735
square
#1B3F97 #971B7D #97731B #1B9735
split-complementary
#1B3F97 #97351B #7D971B
monochromatic
#08142F #122963 #1B3F97 #2455CB #4D78DF

Accessibility & contrast

On white

9.53
#1B3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1B3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3F97
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3F97#FFFFFF#000000##FFFFFF
##1B3F971.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1b3f97;
/* rgb */ color: rgb(27, 63, 151);
/* oklch */ color: oklch(40.0% 0.150 263.9);
Tailwind
colors: {
  custom: {
    50: '#6e73b6',
    500: '#1b3f97',
    950: '#000000',
  },
}
SCSS
$custom: #1b3f97;
$custom-light: #6e73b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3f97",
  "rgb": {
    "r": 27,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 222.581,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39971,
    "c": 0.15043,
    "h": 263.9
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#1B3F97
secondary
#C19F4C
accent
#B93BEC
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1B3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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