#1B2D7A#1B2D7A

#1B2D7A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.133 H 268.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#1B2D7A
RGBrgb(27, 45, 122)
HSLhsl(229, 64%, 29%)
HSVhsv(229, 78%, 48%)
CMYKcmyk(77.9%, 63.1%, 0%, 52.2%)
CIE-LABlab(22.00, 22.34, -45.91)
CIE-LCHlch(22.00, 51.06, 295.94°)
OKLaboklab(33.61% -0.0043 -0.1326)
OKLCHoklch(33.61% 0.133 268.2)
XYZxyz(4.9020, 3.5144, 18.8286)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D7A #7A681B
analogous
#1B5D7A #1B2D7A #391B7A
triadic
#1B2D7A #7A1B2D #2D7A1B
tetradic
#1B2D7A #7A1B5D #7A681B #1B7A39
square
#1B2D7A #7A1B5D #7A681B #1B7A39
split-complementary
#1B2D7A #7A391B #5D7A1B
monochromatic
#060919 #101B48 #1B2D7A #263FAC #3C58D4

Accessibility & contrast

On white

12.33
#1B2D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1B2D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D7A
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D7A#FFFFFF#000000##FFFFFF
##1B2D7A1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2d7a;
/* rgb */ color: rgb(27, 45, 122);
/* oklch */ color: oklch(33.6% 0.133 268.2);
Tailwind
colors: {
  custom: {
    50: '#6765a1',
    500: '#1b2d7a',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d7a;
$custom-light: #6765a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d7a",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 228.632,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33614,
    "c": 0.13271,
    "h": 268.2
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#1B2D7A
secondary
#AE9A43
accent
#C741E7
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1B2D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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