#1B2971#1B2971

#1B2971 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.125 H 269.4°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#1B2971
RGBrgb(27, 41, 113)
HSLhsl(230, 61%, 27%)
HSVhsv(230, 76%, 44%)
CMYKcmyk(76.1%, 63.7%, 0%, 55.7%)
CIE-LABlab(20.09, 21.57, -43.27)
CIE-LCHlch(20.09, 48.35, 296.49°)
OKLaboklab(31.95% -0.0012 -0.1249)
OKLCHoklch(31.95% 0.125 269.4)
XYZxyz(4.2245, 3.0107, 15.9781)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2971 #71631B
analogous
#1B5471 #1B2971 #381B71
triadic
#1B2971 #711B29 #29711B
tetradic
#1B2971 #711B54 #71631B #1B7138
square
#1B2971 #711B54 #71631B #1B7138
split-complementary
#1B2971 #71381B #54711B
monochromatic
#060919 #0F1740 #1B2971 #273BA2 #3750CF

Accessibility & contrast

On white

13.11
#1B2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1B2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2971
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2971#FFFFFF#000000##FFFFFF
##1B29711.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1b2971;
/* rgb */ color: rgb(27, 41, 113);
/* oklch */ color: oklch(31.9% 0.125 269.4);
Tailwind
colors: {
  custom: {
    50: '#65629a',
    500: '#1b2971',
    950: '#000000',
  },
}
SCSS
$custom: #1b2971;
$custom-light: #65629a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2971",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 230.233,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31947,
    "c": 0.12495,
    "h": 269.4
  },
  "luminance": 0.03011
}

Semantic roles & 50–950 ramp

primary
#1B2971
secondary
#A69642
accent
#CA43E5
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1B2971

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

Preview Lab → · Contrast checker → · Palette generator →

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