#1B2A8A#1B2A8A

#1B2A8A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.159 H 268.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#1B2A8A
RGBrgb(27, 42, 138)
HSLhsl(232, 67%, 32%)
HSVhsv(232, 80%, 54%)
CMYKcmyk(80.4%, 69.6%, 0%, 45.9%)
CIE-LABlab(22.73, 30.63, -54.78)
CIE-LCHlch(22.73, 62.76, 299.21°)
OKLaboklab(34.62% -0.0031 -0.1586)
OKLCHoklch(34.62% 0.159 268.9)
XYZxyz(5.8658, 3.7233, 24.4493)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A8A #8A7B1B
analogous
#1B628A #1B2A8A #441B8A
triadic
#1B2A8A #8A1B2A #2A8A1B
tetradic
#1B2A8A #8A1B62 #8A7B1B #1B8A44
square
#1B2A8A #8A1B62 #8A7B1B #1B8A44
split-complementary
#1B2A8A #8A441B #628A1B
monochromatic
#070B24 #111A57 #1B2A8A #253ABD #4559DB

Accessibility & contrast

On white

12.04
#1B2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1B2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A8A
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A8A#FFFFFF#000000##FFFFFF
##1B2A8A1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2a8a;
/* rgb */ color: rgb(27, 42, 138);
/* oklch */ color: oklch(34.6% 0.159 268.9);
Tailwind
colors: {
  custom: {
    50: '#6c63ad',
    500: '#1b2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a8a;
$custom-light: #6c63ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a8a",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 231.892,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34623,
    "c": 0.15864,
    "h": 268.9
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#1B2A8A
secondary
#BCAC45
accent
#D33EEA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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