#1B2A71#1B2A71

#1B2A71 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.124 H 269.1°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#1B2A71
RGBrgb(27, 42, 113)
HSLhsl(230, 61%, 27%)
HSVhsv(230, 76%, 44%)
CMYKcmyk(76.1%, 62.8%, 0%, 55.7%)
CIE-LABlab(20.36, 20.86, -42.82)
CIE-LCHlch(20.36, 47.63, 295.97°)
OKLaboklab(32.15% -0.002 -0.1236)
OKLCHoklch(32.15% 0.124 269.1)
XYZxyz(4.2596, 3.0808, 15.9897)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A71 #71621B
analogous
#1B5571 #1B2A71 #371B71
triadic
#1B2A71 #711B2A #2A711B
tetradic
#1B2A71 #711B55 #71621B #1B7137
square
#1B2A71 #711B55 #71621B #1B7137
split-complementary
#1B2A71 #71371B #55711B
monochromatic
#060919 #0F1840 #1B2A71 #273CA2 #3752CF

Accessibility & contrast

On white

12.99
#1B2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1B2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A71
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A71#FFFFFF#000000##FFFFFF
##1B2A711.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2a71;
/* rgb */ color: rgb(27, 42, 113);
/* oklch */ color: oklch(32.2% 0.124 269.1);
Tailwind
colors: {
  custom: {
    50: '#65639a',
    500: '#1b2a71',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a71;
$custom-light: #65639a;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a71",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 229.535,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32153,
    "c": 0.12362,
    "h": 269.1
  },
  "luminance": 0.03081
}

Semantic roles & 50–950 ramp

primary
#1B2A71
secondary
#A69442
accent
#C843E5
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1B2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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