#1B2271#1B2271

#1B2271 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.134 H 271.7°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#1B2271
RGBrgb(27, 34, 113)
HSLhsl(235, 61%, 27%)
HSVhsv(235, 76%, 44%)
CMYKcmyk(76.1%, 69.9%, 0%, 55.7%)
CIE-LABlab(18.23, 26.44, -46.32)
CIE-LCHlch(18.23, 53.33, 299.72°)
OKLaboklab(30.58% 0.0039 -0.1339)
OKLCHoklch(30.58% 0.134 271.7)
XYZxyz(4.0036, 2.5689, 15.9044)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2271 #716A1B
analogous
#1B4D71 #1B2271 #3F1B71
triadic
#1B2271 #711B22 #22711B
tetradic
#1B2271 #711B4D #716A1B #1B713F
square
#1B2271 #711B4D #716A1B #1B713F
split-complementary
#1B2271 #713F1B #4D711B
monochromatic
#060719 #0F1340 #1B2271 #2731A2 #3744CF

Accessibility & contrast

On white

13.87
#1B2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1B2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2271
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2271#FFFFFF#000000##FFFFFF
##1B22711.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1b2271;
/* rgb */ color: rgb(27, 34, 113);
/* oklch */ color: oklch(30.6% 0.134 271.7);
Tailwind
colors: {
  custom: {
    50: '#665d9b',
    500: '#1b2271',
    950: '#000000',
  },
}
SCSS
$custom: #1b2271;
$custom-light: #665d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2271",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 235.116,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30582,
    "c": 0.13398,
    "h": 271.7
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#1B2271
secondary
#A69E42
accent
#D743E5
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1B2271

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

Preview Lab → · Contrast checker → · Palette generator →

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