#1B2A8E#1B2A8E

#1B2A8E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.164 H 268.8°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#1B2A8E
RGBrgb(27, 42, 142)
HSLhsl(232, 68%, 33%)
HSVhsv(232, 81%, 56%)
CMYKcmyk(81%, 70.4%, 0%, 44.3%)
CIE-LABlab(23.14, 32.14, -56.60)
CIE-LCHlch(23.14, 65.09, 299.59°)
OKLaboklab(35.04% -0.0035 -0.1639)
OKLCHoklch(35.04% 0.164 268.8)
XYZxyz(6.1608, 3.8412, 26.0027)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A8E #8E7F1B
analogous
#1B638E #1B2A8E #451B8E
triadic
#1B2A8E #8E1B2A #2A8E1B
tetradic
#1B2A8E #8E1B63 #8E7F1B #1B8E45
square
#1B2A8E #8E1B63 #8E7F1B #1B8E45
split-complementary
#1B2A8E #8E451B #638E1B
monochromatic
#070C27 #111B5B #1B2A8E #2539C1 #475BDC

Accessibility & contrast

On white

11.88
#1B2A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1B2A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A8E
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A8E#FFFFFF#000000##FFFFFF
##1B2A8E1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b2a8e;
/* rgb */ color: rgb(27, 42, 142);
/* oklch */ color: oklch(35.0% 0.164 268.8);
Tailwind
colors: {
  custom: {
    50: '#6d64b0',
    500: '#1b2a8e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a8e;
$custom-light: #6d64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a8e",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 232.174,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35039,
    "c": 0.16397,
    "h": 268.8
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#1B2A8E
secondary
#BEAE47
accent
#D43DEB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B2A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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