#1B2E78#1B2E78

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

Color values

HEX#1B2E78
RGBrgb(27, 46, 120)
HSLhsl(228, 63%, 29%)
HSVhsv(228, 78%, 47%)
CMYKcmyk(77.5%, 61.7%, 0%, 52.9%)
CIE-LABlab(22.10, 20.83, -44.48)
CIE-LCHlch(22.10, 49.11, 295.10°)
OKLaboklab(33.64% -0.005 -0.1284)
OKLCHoklch(33.64% 0.129 267.8)
XYZxyz(4.8180, 3.5425, 18.1955)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2E78 #78651B
analogous
#1B5D78 #1B2E78 #371B78
triadic
#1B2E78 #781B2E #2E781B
tetradic
#1B2E78 #781B5D #78651B #1B7837
square
#1B2E78 #781B5D #78651B #1B7837
split-complementary
#1B2E78 #78371B #5D781B
monochromatic
#060A19 #101B46 #1B2E78 #2641AA #3B5AD3

Accessibility & contrast

On white

12.29
#1B2E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1B2E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2E78
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2E78#FFFFFF#000000##FFFFFF
##1B2E781.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2e78;
/* rgb */ color: rgb(27, 46, 120);
/* oklch */ color: oklch(33.6% 0.129 267.8);
Tailwind
colors: {
  custom: {
    50: '#6766a0',
    500: '#1b2e78',
    950: '#000000',
  },
}
SCSS
$custom: #1b2e78;
$custom-light: #6766a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2e78",
  "rgb": {
    "r": 27,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 227.742,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33635,
    "c": 0.12851,
    "h": 267.8
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#1B2E78
secondary
#AC9743
accent
#C541E6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #1B2E78

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

Preview Lab → · Contrast checker → · Palette generator →

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