#1B2785#1B2785

#1B2785 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.155 H 269.6°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#1B2785
RGBrgb(27, 39, 133)
HSLhsl(233, 66%, 31%)
HSVhsv(233, 80%, 52%)
CMYKcmyk(79.7%, 70.7%, 0%, 47.8%)
CIE-LABlab(21.49, 30.72, -53.69)
CIE-LCHlch(21.49, 61.85, 299.78°)
OKLaboklab(33.57% -0.0011 -0.1554)
OKLCHoklch(33.57% 0.155 269.6)
XYZxyz(5.4097, 3.3769, 22.5525)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2785 #85791B
analogous
#1B5C85 #1B2785 #441B85
triadic
#1B2785 #851B27 #27851B
tetradic
#1B2785 #851B5C #85791B #1B8544
square
#1B2785 #851B5C #85791B #1B8544
split-complementary
#1B2785 #85441B #5C851B
monochromatic
#06091F #111852 #1B2785 #2536B8 #4253D9

Accessibility & contrast

On white

12.53
#1B2785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1B2785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2785
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2785#FFFFFF#000000##FFFFFF
##1B27851.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2785;
/* rgb */ color: rgb(27, 39, 133);
/* oklch */ color: oklch(33.6% 0.155 269.6);
Tailwind
colors: {
  custom: {
    50: '#6b61a9',
    500: '#1b2785',
    950: '#000000',
  },
}
SCSS
$custom: #1b2785;
$custom-light: #6b61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2785",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 233.208,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33569,
    "c": 0.15544,
    "h": 269.6
  },
  "luminance": 0.03378
}

Semantic roles & 50–950 ramp

primary
#1B2785
secondary
#B8AB44
accent
#D63FE9
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1B2785

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

Preview Lab → · Contrast checker → · Palette generator →

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