#1B2D7F#1B2D7F

#1B2D7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.140 H 268.2°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#1B2D7F
RGBrgb(27, 45, 127)
HSLhsl(229, 65%, 30%)
HSVhsv(229, 79%, 50%)
CMYKcmyk(78.7%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.45, 24.32, -48.34)
CIE-LCHlch(22.45, 54.12, 296.71°)
OKLaboklab(34.09% -0.0043 -0.1398)
OKLCHoklch(34.09% 0.14 268.2)
XYZxyz(5.2198, 3.6415, 20.5023)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D7F #7F6D1B
analogous
#1B5F7F #1B2D7F #3B1B7F
triadic
#1B2D7F #7F1B2D #2D7F1B
tetradic
#1B2D7F #7F1B5F #7F6D1B #1B7F3B
square
#1B2D7F #7F1B5F #7F6D1B #1B7F3B
split-complementary
#1B2D7F #7F3B1B #5F7F1B
monochromatic
#06091A #101B4D #1B2D7F #263FB1 #3E5AD6

Accessibility & contrast

On white

12.15
#1B2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2D7F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D7F#FFFFFF#000000##FFFFFF
##1B2D7F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2d7f;
/* rgb */ color: rgb(27, 45, 127);
/* oklch */ color: oklch(34.1% 0.140 268.2);
Tailwind
colors: {
  custom: {
    50: '#6965a5',
    500: '#1b2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d7f;
$custom-light: #6965a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d7f",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 229.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3409,
    "c": 0.13983,
    "h": 268.2
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#1B2D7F
secondary
#B39F43
accent
#CA40E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1B2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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