#1B2B71#1B2B71

#1B2B71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.4% C 0.122 H 268.7°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#1B2B71
RGBrgb(27, 43, 113)
HSLhsl(229, 61%, 27%)
HSVhsv(229, 76%, 44%)
CMYKcmyk(76.1%, 61.9%, 0%, 55.7%)
CIE-LABlab(20.64, 20.15, -42.36)
CIE-LCHlch(20.64, 46.91, 295.43°)
OKLaboklab(32.36% -0.0028 -0.1222)
OKLCHoklch(32.36% 0.122 268.7)
XYZxyz(4.2955, 3.1526, 16.0017)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2B71 #71611B
analogous
#1B5671 #1B2B71 #361B71
triadic
#1B2B71 #711B2B #2B711B
tetradic
#1B2B71 #711B56 #71611B #1B7136
square
#1B2B71 #711B56 #71611B #1B7136
split-complementary
#1B2B71 #71361B #56711B
monochromatic
#060919 #0F1840 #1B2B71 #273EA2 #3753CF

Accessibility & contrast

On white

12.88
#1B2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1B2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2B71
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2B71#FFFFFF#000000##FFFFFF
##1B2B711.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#003D49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b2b71;
/* rgb */ color: rgb(27, 43, 113);
/* oklch */ color: oklch(32.4% 0.122 268.7);
Tailwind
colors: {
  custom: {
    50: '#65649a',
    500: '#1b2b71',
    950: '#000000',
  },
}
SCSS
$custom: #1b2b71;
$custom-light: #65649a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2b71",
  "rgb": {
    "r": 27,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 228.837,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32362,
    "c": 0.12228,
    "h": 268.7
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#1B2B71
secondary
#A69342
accent
#C743E5
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1B2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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