#1B2D7C#1B2D7C

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

Color values

HEX#1B2D7C
RGBrgb(27, 45, 124)
HSLhsl(229, 64%, 30%)
HSVhsv(229, 78%, 49%)
CMYKcmyk(78.2%, 63.7%, 0%, 51.4%)
CIE-LABlab(22.18, 23.13, -46.89)
CIE-LCHlch(22.18, 52.29, 296.26°)
OKLaboklab(33.8% -0.0043 -0.1355)
OKLCHoklch(33.8% 0.136 268.2)
XYZxyz(5.0272, 3.5645, 19.4879)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D7C #7C6A1B
analogous
#1B5E7C #1B2D7C #3A1B7C
triadic
#1B2D7C #7C1B2D #2D7C1B
tetradic
#1B2D7C #7C1B5E #7C6A1B #1B7C3A
square
#1B2D7C #7C1B5E #7C6A1B #1B7C3A
split-complementary
#1B2D7C #7C3A1B #5E7C1B
monochromatic
#050919 #101B4A #1B2D7C #263FAE #3D59D5

Accessibility & contrast

On white

12.26
#1B2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2D7C
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D7C#FFFFFF#000000##FFFFFF
##1B2D7C1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2d7c;
/* rgb */ color: rgb(27, 45, 124);
/* oklch */ color: oklch(33.8% 0.136 268.2);
Tailwind
colors: {
  custom: {
    50: '#6865a3',
    500: '#1b2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d7c;
$custom-light: #6865a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d7c",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 228.866,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33803,
    "c": 0.13558,
    "h": 268.2
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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