#1B2E7B#1B2E7B

#1B2E7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.133 H 267.8°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#1B2E7B
RGBrgb(27, 46, 123)
HSLhsl(228, 64%, 29%)
HSVhsv(228, 78%, 48%)
CMYKcmyk(78%, 62.6%, 0%, 51.8%)
CIE-LABlab(22.36, 22.04, -45.95)
CIE-LCHlch(22.36, 50.96, 295.62°)
OKLaboklab(33.91% -0.005 -0.1327)
OKLCHoklch(33.91% 0.133 267.8)
XYZxyz(5.0029, 3.6165, 19.1694)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2E7B #7B681B
analogous
#1B5E7B #1B2E7B #381B7B
triadic
#1B2E7B #7B1B2E #2E7B1B
tetradic
#1B2E7B #7B1B5E #7B681B #1B7B38
square
#1B2E7B #7B1B5E #7B681B #1B7B38
split-complementary
#1B2E7B #7B381B #5E7B1B
monochromatic
#060919 #101B49 #1B2E7B #2641AD #3C5AD4

Accessibility & contrast

On white

12.19
#1B2E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1B2E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2E7B
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2E7B#FFFFFF#000000##FFFFFF
##1B2E7B1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2e7b;
/* rgb */ color: rgb(27, 46, 123);
/* oklch */ color: oklch(33.9% 0.133 267.8);
Tailwind
colors: {
  custom: {
    50: '#6766a2',
    500: '#1b2e7b',
    950: '#000000',
  },
}
SCSS
$custom: #1b2e7b;
$custom-light: #6766a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2e7b",
  "rgb": {
    "r": 27,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 228.125,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33913,
    "c": 0.13284,
    "h": 267.8
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#1B2E7B
secondary
#AF9A43
accent
#C641E7
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1B2E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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