#1B2471#1B2471

#1B2471 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.131 H 271.1°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#1B2471
RGBrgb(27, 36, 113)
HSLhsl(234, 61%, 27%)
HSVhsv(234, 76%, 44%)
CMYKcmyk(76.1%, 68.1%, 0%, 55.7%)
CIE-LABlab(18.74, 25.07, -45.47)
CIE-LCHlch(18.74, 51.92, 298.87°)
OKLaboklab(30.96% 0.0025 -0.1314)
OKLCHoklch(30.96% 0.131 271.1)
XYZxyz(4.0625, 2.6866, 15.9240)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2471 #71681B
analogous
#1B4F71 #1B2471 #3D1B71
triadic
#1B2471 #711B24 #24711B
tetradic
#1B2471 #711B4F #71681B #1B713D
square
#1B2471 #711B4F #71681B #1B713D
split-complementary
#1B2471 #713D1B #4F711B
monochromatic
#060819 #0F1440 #1B2471 #2734A2 #3747CF

Accessibility & contrast

On white

13.66
#1B2471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1B2471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2471
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2471#FFFFFF#000000##FFFFFF
##1B24711.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b2471;
/* rgb */ color: rgb(27, 36, 113);
/* oklch */ color: oklch(31.0% 0.131 271.1);
Tailwind
colors: {
  custom: {
    50: '#665e9b',
    500: '#1b2471',
    950: '#000000',
  },
}
SCSS
$custom: #1b2471;
$custom-light: #665e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2471",
  "rgb": {
    "r": 27,
    "g": 36,
    "b": 113
  },
  "hsl": {
    "h": 233.721,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30957,
    "c": 0.13146,
    "h": 271.1
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#1B2471
secondary
#A69B42
accent
#D443E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B2471

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

Preview Lab → · Contrast checker → · Palette generator →

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