#1B2979#1B2979

#1B2979 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.136 H 269.4°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#1B2979
RGBrgb(27, 41, 121)
HSLhsl(231, 64%, 29%)
HSVhsv(231, 78%, 47%)
CMYKcmyk(77.7%, 66.1%, 0%, 52.5%)
CIE-LABlab(20.82, 24.73, -47.20)
CIE-LCHlch(20.82, 53.28, 297.66°)
OKLaboklab(32.72% -0.0014 -0.1364)
OKLCHoklch(32.72% 0.136 269.4)
XYZxyz(4.6949, 3.1989, 18.4555)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2979 #796B1B
analogous
#1B5879 #1B2979 #3C1B79
triadic
#1B2979 #791B29 #29791B
tetradic
#1B2979 #791B58 #796B1B #1B793C
square
#1B2979 #791B58 #796B1B #1B793C
split-complementary
#1B2979 #793C1B #58791B
monochromatic
#060819 #101847 #1B2979 #263AAB #3B52D3

Accessibility & contrast

On white

12.81
#1B2979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1B2979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2979
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2979#FFFFFF#000000##FFFFFF
##1B29791.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b2979;
/* rgb */ color: rgb(27, 41, 121);
/* oklch */ color: oklch(32.7% 0.136 269.4);
Tailwind
colors: {
  custom: {
    50: '#6762a1',
    500: '#1b2979',
    950: '#000000',
  },
}
SCSS
$custom: #1b2979;
$custom-light: #6762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2979",
  "rgb": {
    "r": 27,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 231.064,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32719,
    "c": 0.13645,
    "h": 269.4
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#1B2979
secondary
#AD9D43
accent
#CE41E7
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B2979

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

Preview Lab → · Contrast checker → · Palette generator →

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