#1B2D7B#1B2D7B

#1B2D7B is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.134 H 268.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#1B2D7B
RGBrgb(27, 45, 123)
HSLhsl(229, 64%, 29%)
HSVhsv(229, 78%, 48%)
CMYKcmyk(78%, 63.4%, 0%, 51.8%)
CIE-LABlab(22.09, 22.74, -46.40)
CIE-LCHlch(22.09, 51.67, 296.10°)
OKLaboklab(33.71% -0.0043 -0.1341)
OKLCHoklch(33.71% 0.134 268.2)
XYZxyz(4.9643, 3.5393, 19.1566)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D7B #7B691B
analogous
#1B5D7B #1B2D7B #391B7B
triadic
#1B2D7B #7B1B2D #2D7B1B
tetradic
#1B2D7B #7B1B5D #7B691B #1B7B39
square
#1B2D7B #7B1B5D #7B691B #1B7B39
split-complementary
#1B2D7B #7B391B #5D7B1B
monochromatic
#060919 #101B49 #1B2D7B #263FAD #3C59D4

Accessibility & contrast

On white

12.30
#1B2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1B2D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D7B
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D7B#FFFFFF#000000##FFFFFF
##1B2D7B1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2d7b;
/* rgb */ color: rgb(27, 45, 123);
/* oklch */ color: oklch(33.7% 0.134 268.2);
Tailwind
colors: {
  custom: {
    50: '#6865a2',
    500: '#1b2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d7b;
$custom-light: #6865a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d7b",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 228.75,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33709,
    "c": 0.13415,
    "h": 268.2
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#1B2D7B
secondary
#AF9B43
accent
#C841E7
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1B2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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