#1B2F7A#1B2F7A

#1B2F7A is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.0% C 0.130 H 267.5°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1B2F7A
RGBrgb(27, 47, 122)
HSLhsl(227, 64%, 29%)
HSVhsv(227, 78%, 48%)
CMYKcmyk(77.9%, 61.5%, 0%, 52.2%)
CIE-LABlab(22.55, 20.93, -45.01)
CIE-LCHlch(22.55, 49.64, 294.94°)
OKLaboklab(34.03% -0.0057 -0.13)
OKLCHoklch(34.03% 0.13 267.5)
XYZxyz(4.9801, 3.6706, 18.8546)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2F7A #7A661B
analogous
#1B5F7A #1B2F7A #371B7A
triadic
#1B2F7A #7A1B2F #2F7A1B
tetradic
#1B2F7A #7A1B5F #7A661B #1B7A37
square
#1B2F7A #7A1B5F #7A661B #1B7A37
split-complementary
#1B2F7A #7A371B #5F7A1B
monochromatic
#060A19 #101C48 #1B2F7A #2642AC #3C5CD4

Accessibility & contrast

On white

12.11
#1B2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1B2F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2F7A
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2F7A#FFFFFF#000000##FFFFFF
##1B2F7A1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2f7a;
/* rgb */ color: rgb(27, 47, 122);
/* oklch */ color: oklch(34.0% 0.130 267.5);
Tailwind
colors: {
  custom: {
    50: '#6767a1',
    500: '#1b2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #1b2f7a;
$custom-light: #6767a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2f7a",
  "rgb": {
    "r": 27,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 227.368,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34027,
    "c": 0.13009,
    "h": 267.5
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#1B2F7A
secondary
#AE9843
accent
#C441E7
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1B2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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