#1B2A4E#1B2A4E

#1B2A4E is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.069 H 265.3°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#1B2A4E
RGBrgb(27, 42, 78)
HSLhsl(222, 49%, 21%)
HSVhsv(222, 65%, 31%)
CMYKcmyk(65.4%, 46.2%, 0%, 69.4%)
CIE-LABlab(17.64, 6.70, -24.12)
CIE-LCHlch(17.64, 25.03, 285.53°)
OKLaboklab(29.23% -0.0056 -0.0686)
OKLCHoklch(29.23% 0.069 265.3)
XYZxyz(2.6546, 2.4388, 7.5371)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A4E #4E3F1B
analogous
#1B434E #1B2A4E #251B4E
triadic
#1B2A4E #4E1B2A #2A4E1B
tetradic
#1B2A4E #4E1B43 #4E3F1B #1B4E25
square
#1B2A4E #4E1B43 #4E3F1B #1B4E25
split-complementary
#1B2A4E #4E251B #434E1B
monochromatic
#080C17 #0B1221 #1B2A4E #2B427B #3A5BA9

Accessibility & contrast

On white

14.11
#1B2A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1B2A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A4E
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A4E#FFFFFF#000000##FFFFFF
##1B2A4E1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2E4F
Deuteranopia (green-blind)
#13294D
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b2a4e;
/* rgb */ color: rgb(27, 42, 78);
/* oklch */ color: oklch(29.2% 0.069 265.3);
Tailwind
colors: {
  custom: {
    50: '#5d6380',
    500: '#1b2a4e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a4e;
$custom-light: #5d6380;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a4e",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 222.353,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29228,
    "c": 0.06886,
    "h": 265.3
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#1B2A4E
secondary
#847041
accent
#B050D8
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #1B2A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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