#1B2C8C#1B2C8C

#1B2C8C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.159 H 268.4°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#1B2C8C
RGBrgb(27, 44, 140)
HSLhsl(231, 68%, 33%)
HSVhsv(231, 81%, 55%)
CMYKcmyk(80.7%, 68.6%, 0%, 45.1%)
CIE-LABlab(23.43, 30.07, -54.88)
CIE-LCHlch(23.43, 62.58, 298.71°)
OKLaboklab(35.19% -0.0043 -0.1589)
OKLCHoklch(35.19% 0.159 268.4)
XYZxyz(6.0847, 3.9271, 25.2432)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2C8C #8C7B1B
analogous
#1B658C #1B2C8C #421B8C
triadic
#1B2C8C #8C1B2C #2C8C1B
tetradic
#1B2C8C #8C1B65 #8C7B1B #1B8C42
square
#1B2C8C #8C1B65 #8C7B1B #1B8C42
split-complementary
#1B2C8C #8C421B #658C1B
monochromatic
#070C25 #111C59 #1B2C8C #253CBF #465DDB

Accessibility & contrast

On white

11.76
#1B2C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1B2C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2C8C
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2C8C#FFFFFF#000000##FFFFFF
##1B2C8C1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b2c8c;
/* rgb */ color: rgb(27, 44, 140);
/* oklch */ color: oklch(35.2% 0.159 268.4);
Tailwind
colors: {
  custom: {
    50: '#6c65af',
    500: '#1b2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #1b2c8c;
$custom-light: #6c65af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2c8c",
  "rgb": {
    "r": 27,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 230.973,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35189,
    "c": 0.15897,
    "h": 268.4
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#1B2C8C
secondary
#BDAB46
accent
#D03DEB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1B2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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