#1B2D7D#1B2D7D

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

Color values

HEX#1B2D7D
RGBrgb(27, 45, 125)
HSLhsl(229, 64%, 30%)
HSVhsv(229, 78%, 49%)
CMYKcmyk(78.4%, 64%, 0%, 51%)
CIE-LABlab(22.27, 23.53, -47.38)
CIE-LCHlch(22.27, 52.90, 296.41°)
OKLaboklab(33.9% -0.0043 -0.1369)
OKLCHoklch(33.9% 0.137 268.2)
XYZxyz(5.0908, 3.5899, 19.8227)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D7D #7D6B1B
analogous
#1B5E7D #1B2D7D #3A1B7D
triadic
#1B2D7D #7D1B2D #2D7D1B
tetradic
#1B2D7D #7D1B5E #7D6B1B #1B7D3A
square
#1B2D7D #7D1B5E #7D6B1B #1B7D3A
split-complementary
#1B2D7D #7D3A1B #5E7D1B
monochromatic
#050919 #101B4B #1B2D7D #263FAF #3D59D5

Accessibility & contrast

On white

12.22
#1B2D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2D7D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D7D#FFFFFF#000000##FFFFFF
##1B2D7D1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2d7d;
/* rgb */ color: rgb(27, 45, 125);
/* oklch */ color: oklch(33.9% 0.137 268.2);
Tailwind
colors: {
  custom: {
    50: '#6865a3',
    500: '#1b2d7d',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d7d;
$custom-light: #6865a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d7d",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 228.98,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33898,
    "c": 0.137,
    "h": 268.2
  },
  "luminance": 0.0359
}

Semantic roles & 50–950 ramp

primary
#1B2D7D
secondary
#B19D43
accent
#C940E7
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1B2D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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