#1B2A7B#1B2A7B

#1B2A7B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.138 H 269.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#1B2A7B
RGBrgb(27, 42, 123)
HSLhsl(231, 64%, 29%)
HSVhsv(231, 78%, 48%)
CMYKcmyk(78%, 65.9%, 0%, 51.8%)
CIE-LABlab(21.28, 24.83, -47.73)
CIE-LCHlch(21.28, 53.80, 297.48°)
OKLaboklab(33.11% -0.0022 -0.138)
OKLCHoklch(33.11% 0.138 269.1)
XYZxyz(4.8539, 3.3185, 19.1198)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A7B #7B6C1B
analogous
#1B5A7B #1B2A7B #3C1B7B
triadic
#1B2A7B #7B1B2A #2A7B1B
tetradic
#1B2A7B #7B1B5A #7B6C1B #1B7B3C
square
#1B2A7B #7B1B5A #7B6C1B #1B7B3C
split-complementary
#1B2A7B #7B3C1B #5A7B1B
monochromatic
#060919 #101949 #1B2A7B #263BAD #3C54D4

Accessibility & contrast

On white

12.62
#1B2A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1B2A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A7B
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A7B#FFFFFF#000000##FFFFFF
##1B2A7B1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b2a7b;
/* rgb */ color: rgb(27, 42, 123);
/* oklch */ color: oklch(33.1% 0.138 269.1);
Tailwind
colors: {
  custom: {
    50: '#6863a2',
    500: '#1b2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a7b;
$custom-light: #6863a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a7b",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 230.625,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33111,
    "c": 0.13801,
    "h": 269.1
  },
  "luminance": 0.03319
}

Semantic roles & 50–950 ramp

primary
#1B2A7B
secondary
#AF9E43
accent
#CD41E7
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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