#1B2A8B#1B2A8B

#1B2A8B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.160 H 268.9°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#1B2A8B
RGBrgb(27, 42, 139)
HSLhsl(232, 67%, 33%)
HSVhsv(232, 81%, 55%)
CMYKcmyk(80.6%, 69.8%, 0%, 45.5%)
CIE-LABlab(22.84, 31.01, -55.24)
CIE-LCHlch(22.84, 63.35, 299.31°)
OKLaboklab(34.73% -0.0032 -0.1599)
OKLCHoklch(34.73% 0.16 268.9)
XYZxyz(5.9386, 3.7523, 24.8324)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A8B #8B7C1B
analogous
#1B628B #1B2A8B #441B8B
triadic
#1B2A8B #8B1B2A #2A8B1B
tetradic
#1B2A8B #8B1B62 #8B7C1B #1B8B44
square
#1B2A8B #8B1B62 #8B7C1B #1B8B44
split-complementary
#1B2A8B #8B441B #628B1B
monochromatic
#070B25 #111B58 #1B2A8B #2539BE #4559DB

Accessibility & contrast

On white

12.00
#1B2A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1B2A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A8B
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A8B#FFFFFF#000000##FFFFFF
##1B2A8B1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2a8b;
/* rgb */ color: rgb(27, 42, 139);
/* oklch */ color: oklch(34.7% 0.160 268.9);
Tailwind
colors: {
  custom: {
    50: '#6c63ae',
    500: '#1b2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a8b;
$custom-light: #6c63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a8b",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 231.964,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34726,
    "c": 0.15998,
    "h": 268.9
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#1B2A8B
secondary
#BCAD45
accent
#D33DEA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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