#1B1985#1B1985

#1B1985 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.170 H 271.7°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#1B1985
RGBrgb(27, 25, 133)
HSLhsl(241, 68%, 31%)
HSVhsv(241, 81%, 52%)
CMYKcmyk(79.7%, 81.2%, 0%, 47.8%)
CIE-LABlab(18.46, 39.22, -58.70)
CIE-LCHlch(18.46, 70.60, 303.75°)
OKLaboklab(31.41% 0.005 -0.1699)
OKLCHoklch(31.41% 0.17 271.7)
XYZxyz(5.0318, 2.6212, 22.4265)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B1985 #838519
analogous
#194D85 #1B1985 #511985
triadic
#1B1985 #851B19 #19851B
tetradic
#1B1985 #85194D #838519 #198551
square
#1B1985 #85194D #838519 #198551
split-complementary
#1B1985 #855119 #4D8519
monochromatic
#06061E #110F51 #1B1985 #2523B9 #413EDB

Accessibility & contrast

On white

13.78
#1B1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1B1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B1985
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B1985#FFFFFF#000000##FFFFFF
##1B19851.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003288
Deuteranopia (green-blind)
#002783
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b1985;
/* rgb */ color: rgb(27, 25, 133);
/* oklch */ color: oklch(31.4% 0.170 271.7);
Tailwind
colors: {
  custom: {
    50: '#6c58aa',
    500: '#1b1985',
    950: '#000000',
  },
}
SCSS
$custom: #1b1985;
$custom-light: #6c58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b1985",
  "rgb": {
    "r": 27,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 241.111,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31405,
    "c": 0.16999,
    "h": 271.7
  },
  "luminance": 0.02622
}

Semantic roles & 50–950 ramp

primary
#1B1985
secondary
#B6B941
accent
#EB3DE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1B1985

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

Preview Lab → · Contrast checker → · Palette generator →

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