#1B2A72#1B2A72

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

Color values

HEX#1B2A72
RGBrgb(27, 42, 114)
HSLhsl(230, 62%, 28%)
HSVhsv(230, 76%, 45%)
CMYKcmyk(76.3%, 63.2%, 0%, 55.3%)
CIE-LABlab(20.45, 21.26, -43.32)
CIE-LCHlch(20.45, 48.25, 296.14°)
OKLaboklab(32.25% -0.002 -0.1251)
OKLCHoklch(32.25% 0.125 269.1)
XYZxyz(4.3162, 3.1034, 16.2879)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A72 #72631B
analogous
#1B5672 #1B2A72 #371B72
triadic
#1B2A72 #721B2A #2A721B
tetradic
#1B2A72 #721B56 #72631B #1B7237
square
#1B2A72 #721B56 #72631B #1B7237
split-complementary
#1B2A72 #72371B #56721B
monochromatic
#060919 #0F1841 #1B2A72 #273CA3 #3852D0

Accessibility & contrast

On white

12.96
#1B2A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2A72
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A72#FFFFFF#000000##FFFFFF
##1B2A721.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2a72;
/* rgb */ color: rgb(27, 42, 114);
/* oklch */ color: oklch(32.2% 0.125 269.1);
Tailwind
colors: {
  custom: {
    50: '#65639b',
    500: '#1b2a72',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a72;
$custom-light: #65639b;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a72",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 229.655,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32247,
    "c": 0.12508,
    "h": 269.1
  },
  "luminance": 0.03104
}

Semantic roles & 50–950 ramp

primary
#1B2A72
secondary
#A79542
accent
#C943E5
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #1B2A72

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

Preview Lab → · Contrast checker → · Palette generator →

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