#1B2E7F#1B2E7F

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

Color values

HEX#1B2E7F
RGBrgb(27, 46, 127)
HSLhsl(229, 65%, 30%)
HSVhsv(229, 79%, 50%)
CMYKcmyk(78.7%, 63.8%, 0%, 50.2%)
CIE-LABlab(22.72, 23.63, -47.90)
CIE-LCHlch(22.72, 53.41, 296.26°)
OKLaboklab(34.29% -0.005 -0.1385)
OKLCHoklch(34.29% 0.139 267.9)
XYZxyz(5.2584, 3.7187, 20.5152)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2E7F #7F6C1B
analogous
#1B607F #1B2E7F #3A1B7F
triadic
#1B2E7F #7F1B2E #2E7F1B
tetradic
#1B2E7F #7F1B60 #7F6C1B #1B7F3A
square
#1B2E7F #7F1B60 #7F6C1B #1B7F3A
split-complementary
#1B2E7F #7F3A1B #607F1B
monochromatic
#06091A #101C4D #1B2E7F #2640B1 #3E5BD6

Accessibility & contrast

On white

12.04
#1B2E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2E7F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2E7F#FFFFFF#000000##FFFFFF
##1B2E7F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2e7f;
/* rgb */ color: rgb(27, 46, 127);
/* oklch */ color: oklch(34.3% 0.139 267.9);
Tailwind
colors: {
  custom: {
    50: '#6866a5',
    500: '#1b2e7f',
    950: '#000000',
  },
}
SCSS
$custom: #1b2e7f;
$custom-light: #6866a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2e7f",
  "rgb": {
    "r": 27,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 228.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3429,
    "c": 0.13855,
    "h": 267.9
  },
  "luminance": 0.03719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B2E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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