#1B2C7E#1B2C7E

#1B2C7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.140 H 268.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#1B2C7E
RGBrgb(27, 44, 126)
HSLhsl(230, 65%, 30%)
HSVhsv(230, 79%, 49%)
CMYKcmyk(78.6%, 65.1%, 0%, 50.6%)
CIE-LABlab(22.09, 24.62, -48.30)
CIE-LCHlch(22.09, 54.21, 297.01°)
OKLaboklab(33.8% -0.0036 -0.1396)
OKLCHoklch(33.8% 0.14 268.5)
XYZxyz(5.1173, 3.5402, 20.1482)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2C7E #7E6D1B
analogous
#1B5D7E #1B2C7E #3C1B7E
triadic
#1B2C7E #7E1B2C #2C7E1B
tetradic
#1B2C7E #7E1B5D #7E6D1B #1B7E3C
square
#1B2C7E #7E1B5D #7E6D1B #1B7E3C
split-complementary
#1B2C7E #7E3C1B #5D7E1B
monochromatic
#050919 #101A4C #1B2C7E #263EB0 #3E58D6

Accessibility & contrast

On white

12.29
#1B2C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B2C7E
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2C7E#FFFFFF#000000##FFFFFF
##1B2C7E1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2c7e;
/* rgb */ color: rgb(27, 44, 126);
/* oklch */ color: oklch(33.8% 0.140 268.5);
Tailwind
colors: {
  custom: {
    50: '#6865a4',
    500: '#1b2c7e',
    950: '#000000',
  },
}
SCSS
$custom: #1b2c7e;
$custom-light: #6865a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2c7e",
  "rgb": {
    "r": 27,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 229.697,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.33796,
    "c": 0.1397,
    "h": 268.5
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#1B2C7E
secondary
#B29F43
accent
#CB40E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1B2C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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