#1B2E7A#1B2E7A

#1B2E7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.131 H 267.8°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#1B2E7A
RGBrgb(27, 46, 122)
HSLhsl(228, 64%, 29%)
HSVhsv(228, 78%, 48%)
CMYKcmyk(77.9%, 62.3%, 0%, 52.2%)
CIE-LABlab(22.27, 21.63, -45.46)
CIE-LCHlch(22.27, 50.35, 295.45°)
OKLaboklab(33.82% -0.005 -0.1313)
OKLCHoklch(33.82% 0.131 267.8)
XYZxyz(4.9406, 3.5916, 18.8414)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2E7A #7A671B
analogous
#1B5E7A #1B2E7A #381B7A
triadic
#1B2E7A #7A1B2E #2E7A1B
tetradic
#1B2E7A #7A1B5E #7A671B #1B7A38
square
#1B2E7A #7A1B5E #7A671B #1B7A38
split-complementary
#1B2E7A #7A381B #5E7A1B
monochromatic
#060919 #101B48 #1B2E7A #2641AC #3C5AD4

Accessibility & contrast

On white

12.22
#1B2E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1B2E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2E7A
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2E7A#FFFFFF#000000##FFFFFF
##1B2E7A1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2e7a;
/* rgb */ color: rgb(27, 46, 122);
/* oklch */ color: oklch(33.8% 0.131 267.8);
Tailwind
colors: {
  custom: {
    50: '#6766a1',
    500: '#1b2e7a',
    950: '#000000',
  },
}
SCSS
$custom: #1b2e7a;
$custom-light: #6766a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2e7a",
  "rgb": {
    "r": 27,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 228,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3382,
    "c": 0.13141,
    "h": 267.8
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#1B2E7A
secondary
#AE9943
accent
#C641E7
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B2E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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