#1B2E7E#1B2E7E

#1B2E7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.137 H 267.9°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#1B2E7E
RGBrgb(27, 46, 126)
HSLhsl(228, 65%, 30%)
HSVhsv(228, 79%, 49%)
CMYKcmyk(78.6%, 63.5%, 0%, 50.6%)
CIE-LABlab(22.63, 23.23, -47.42)
CIE-LCHlch(22.63, 52.80, 296.10°)
OKLaboklab(34.2% -0.005 -0.137)
OKLCHoklch(34.2% 0.137 267.9)
XYZxyz(5.1936, 3.6928, 20.1737)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2E7E #7E6B1B
analogous
#1B5F7E #1B2E7E #3A1B7E
triadic
#1B2E7E #7E1B2E #2E7E1B
tetradic
#1B2E7E #7E1B5F #7E6B1B #1B7E3A
square
#1B2E7E #7E1B5F #7E6B1B #1B7E3A
split-complementary
#1B2E7E #7E3A1B #5F7E1B
monochromatic
#050919 #101C4C #1B2E7E #2640B0 #3E5BD6

Accessibility & contrast

On white

12.08
#1B2E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1B2E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2E7E
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2E7E#FFFFFF#000000##FFFFFF
##1B2E7E1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2e7e;
/* rgb */ color: rgb(27, 46, 126);
/* oklch */ color: oklch(34.2% 0.137 267.9);
Tailwind
colors: {
  custom: {
    50: '#6866a4',
    500: '#1b2e7e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2e7e;
$custom-light: #6866a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2e7e",
  "rgb": {
    "r": 27,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 228.485,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.34195,
    "c": 0.13713,
    "h": 267.9
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#1B2E7E
secondary
#B29D43
accent
#C840E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B2E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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