#1B2A84#1B2A84

#1B2A84 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.151 H 269.0°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#1B2A84
RGBrgb(27, 42, 132)
HSLhsl(231, 66%, 31%)
HSVhsv(231, 80%, 52%)
CMYKcmyk(79.5%, 68.2%, 0%, 48.2%)
CIE-LABlab(22.14, 28.33, -52.00)
CIE-LCHlch(22.14, 59.22, 298.59°)
OKLaboklab(34.01% -0.0027 -0.1505)
OKLCHoklch(34.01% 0.151 269)
XYZxyz(5.4434, 3.5543, 22.2245)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A84 #84751B
analogous
#1B5E84 #1B2A84 #401B84
triadic
#1B2A84 #841B2A #2A841B
tetradic
#1B2A84 #841B5E #84751B #1B8440
square
#1B2A84 #841B5E #84751B #1B8440
split-complementary
#1B2A84 #84401B #5E841B
monochromatic
#060A1E #111A51 #1B2A84 #253AB7 #4157D8

Accessibility & contrast

On white

12.27
#1B2A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1B2A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A84
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A84#FFFFFF#000000##FFFFFF
##1B2A841.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2a84;
/* rgb */ color: rgb(27, 42, 132);
/* oklch */ color: oklch(34.0% 0.151 269.0);
Tailwind
colors: {
  custom: {
    50: '#6a63a9',
    500: '#1b2a84',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a84;
$custom-light: #6a63a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a84",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 231.429,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34008,
    "c": 0.15051,
    "h": 269
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#1B2A84
secondary
#B7A743
accent
#D13FE9
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1B2A84

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

Preview Lab → · Contrast checker → · Palette generator →

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