#1B2A8F#1B2A8F

#1B2A8F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.165 H 268.8°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#1B2A8F
RGBrgb(27, 42, 143)
HSLhsl(232, 68%, 33%)
HSVhsv(232, 81%, 56%)
CMYKcmyk(81.1%, 70.6%, 0%, 43.9%)
CIE-LABlab(23.24, 32.52, -57.05)
CIE-LCHlch(23.24, 65.67, 299.68°)
OKLaboklab(35.14% -0.0036 -0.1652)
OKLCHoklch(35.14% 0.165 268.8)
XYZxyz(6.2362, 3.8714, 26.3999)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A8F #8F801B
analogous
#1B648F #1B2A8F #461B8F
triadic
#1B2A8F #8F1B2A #2A8F1B
tetradic
#1B2A8F #8F1B64 #8F801B #1B8F46
square
#1B2A8F #8F1B64 #8F801B #1B8F46
split-complementary
#1B2A8F #8F461B #648F1B
monochromatic
#080C28 #111B5C #1B2A8F #2539C2 #485BDC

Accessibility & contrast

On white

11.83
#1B2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2A8F
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A8F#FFFFFF#000000##FFFFFF
##1B2A8F1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b2a8f;
/* rgb */ color: rgb(27, 42, 143);
/* oklch */ color: oklch(35.1% 0.165 268.8);
Tailwind
colors: {
  custom: {
    50: '#6d64b1',
    500: '#1b2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a8f;
$custom-light: #6d64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a8f",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 232.241,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35144,
    "c": 0.16529,
    "h": 268.8
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

primary
#1B2A8F
secondary
#BEAF48
accent
#D53DEB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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