#1B2A7F#1B2A7F

#1B2A7F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.144 H 269.1°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1B2A7F
RGBrgb(27, 42, 127)
HSLhsl(231, 65%, 30%)
HSVhsv(231, 79%, 50%)
CMYKcmyk(78.7%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.66, 26.40, -49.64)
CIE-LCHlch(21.66, 56.22, 298.00°)
OKLaboklab(33.51% -0.0024 -0.1436)
OKLCHoklch(33.51% 0.144 269.1)
XYZxyz(5.1094, 3.4207, 20.4655)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A7F #7F701B
analogous
#1B5C7F #1B2A7F #3E1B7F
triadic
#1B2A7F #7F1B2A #2A7F1B
tetradic
#1B2A7F #7F1B5C #7F701B #1B7F3E
square
#1B2A7F #7F1B5C #7F701B #1B7F3E
split-complementary
#1B2A7F #7F3E1B #5C7F1B
monochromatic
#06091A #10194D #1B2A7F #263BB1 #3E55D6

Accessibility & contrast

On white

12.47
#1B2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1B2A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A7F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A7F#FFFFFF#000000##FFFFFF
##1B2A7F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2a7f;
/* rgb */ color: rgb(27, 42, 127);
/* oklch */ color: oklch(33.5% 0.144 269.1);
Tailwind
colors: {
  custom: {
    50: '#6963a5',
    500: '#1b2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a7f;
$custom-light: #6963a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a7f",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 231,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33506,
    "c": 0.14362,
    "h": 269.1
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#1B2A7F
secondary
#B3A243
accent
#CF40E8
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1B2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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