#1B2C7F#1B2C7F

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

Color values

HEX#1B2C7F
RGBrgb(27, 44, 127)
HSLhsl(230, 65%, 30%)
HSVhsv(230, 79%, 50%)
CMYKcmyk(78.7%, 65.4%, 0%, 50.2%)
CIE-LABlab(22.18, 25.02, -48.78)
CIE-LCHlch(22.18, 54.82, 297.15°)
OKLaboklab(33.89% -0.0037 -0.141)
OKLCHoklch(33.89% 0.141 268.5)
XYZxyz(5.1821, 3.5661, 20.4898)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2C7F #7F6E1B
analogous
#1B5E7F #1B2C7F #3C1B7F
triadic
#1B2C7F #7F1B2C #2C7F1B
tetradic
#1B2C7F #7F1B5E #7F6E1B #1B7F3C
square
#1B2C7F #7F1B5E #7F6E1B #1B7F3C
split-complementary
#1B2C7F #7F3C1B #5E7F1B
monochromatic
#06091A #101B4D #1B2C7F #263DB1 #3E58D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1B2C7F#FFFFFF#000000##FFFFFF
##1B2C7F1.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)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b2c7f;
/* rgb */ color: rgb(27, 44, 127);
/* oklch */ color: oklch(33.9% 0.141 268.5);
Tailwind
colors: {
  custom: {
    50: '#6965a5',
    500: '#1b2c7f',
    950: '#000000',
  },
}
SCSS
$custom: #1b2c7f;
$custom-light: #6965a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2c7f",
  "rgb": {
    "r": 27,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 229.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33893,
    "c": 0.1411,
    "h": 268.5
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B2C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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