#1B3795#1B3795

#1B3795 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.158 H 266.0°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#1B3795
RGBrgb(27, 55, 149)
HSLhsl(226, 69%, 35%)
HSVhsv(226, 82%, 58%)
CMYKcmyk(81.9%, 63.1%, 0%, 41.6%)
CIE-LABlab(27.11, 26.12, -54.40)
CIE-LCHlch(27.11, 60.35, 295.65°)
OKLaboklab(38.16% -0.0109 -0.1574)
OKLCHoklch(38.16% 0.158 266)
XYZxyz(7.2411, 5.1345, 29.0374)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3795 #95791B
analogous
#1B7495 #1B3795 #3C1B95
triadic
#1B3795 #951B37 #37951B
tetradic
#1B3795 #951B74 #95791B #1B953C
square
#1B3795 #951B74 #95791B #1B953C
split-complementary
#1B3795 #953C1B #74951B
monochromatic
#08112D #122461 #1B3795 #244AC9 #4C6EDF

Accessibility & contrast

On white

10.36
#1B3795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1B3795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3795
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3795#FFFFFF#000000##FFFFFF
##1B37951.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004698
Deuteranopia (green-blind)
#003A93
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1b3795;
/* rgb */ color: rgb(27, 55, 149);
/* oklch */ color: oklch(38.2% 0.158 266.0);
Tailwind
colors: {
  custom: {
    50: '#6e6db5',
    500: '#1b3795',
    950: '#000000',
  },
}
SCSS
$custom: #1b3795;
$custom-light: #6e6db5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3795",
  "rgb": {
    "r": 27,
    "g": 55,
    "b": 149
  },
  "hsl": {
    "h": 226.23,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.3816,
    "c": 0.15776,
    "h": 266
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#1B3795
secondary
#C1A64B
accent
#C43CEC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1B3795

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

Preview Lab → · Contrast checker → · Palette generator →

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