#1B3297#1B3297

#1B3297 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.167 H 267.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#1B3297
RGBrgb(27, 50, 151)
HSLhsl(229, 70%, 35%)
HSVhsv(229, 82%, 59%)
CMYKcmyk(82.1%, 66.9%, 0%, 40.8%)
CIE-LABlab(26.00, 30.28, -57.45)
CIE-LCHlch(26.00, 64.94, 297.79°)
OKLaboklab(37.4% -0.0081 -0.1664)
OKLCHoklch(37.4% 0.167 267.2)
XYZxyz(7.1766, 4.7477, 29.8103)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3297 #97801B
analogous
#1B7097 #1B3297 #421B97
triadic
#1B3297 #971B32 #32971B
tetradic
#1B3297 #971B70 #97801B #1B9742
square
#1B3297 #971B70 #97801B #1B9742
split-complementary
#1B3297 #97421B #70971B
monochromatic
#08102F #122163 #1B3297 #2443CB #4D68DF

Accessibility & contrast

On white

10.77
#1B3297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1B3297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3297
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3297#FFFFFF#000000##FFFFFF
##1B32971.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#004D60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1b3297;
/* rgb */ color: rgb(27, 50, 151);
/* oklch */ color: oklch(37.4% 0.167 267.2);
Tailwind
colors: {
  custom: {
    50: '#6f69b7',
    500: '#1b3297',
    950: '#000000',
  },
}
SCSS
$custom: #1b3297;
$custom-light: #6f69b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3297",
  "rgb": {
    "r": 27,
    "g": 50,
    "b": 151
  },
  "hsl": {
    "h": 228.871,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37398,
    "c": 0.16656,
    "h": 267.2
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#1B3297
secondary
#C1AC4C
accent
#CC3BEC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1B3297

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

Preview Lab → · Contrast checker → · Palette generator →

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