#1F1B85#1F1B85

#1F1B85 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.167 H 273.2°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#1F1B85
RGBrgb(31, 27, 133)
HSLhsl(242, 66%, 31%)
HSVhsv(242, 80%, 52%)
CMYKcmyk(76.7%, 79.7%, 0%, 47.8%)
CIE-LABlab(19.09, 38.43, -57.65)
CIE-LCHlch(19.09, 69.28, 303.69°)
OKLaboklab(31.92% 0.0092 -0.1668)
OKLCHoklch(31.92% 0.167 273.2)
XYZxyz(5.1892, 2.7681, 22.4466)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1B85 #81851B
analogous
#1B4C85 #1F1B85 #541B85
triadic
#1F1B85 #851F1B #1B851F
tetradic
#1F1B85 #851B4C #81851B #1B8554
square
#1F1B85 #851B4C #81851B #1B8554
split-complementary
#1F1B85 #85541B #4C851B
monochromatic
#07061F #131152 #1F1B85 #2B25B8 #4742D9

Accessibility & contrast

On white

13.52
#1F1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1B85
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1B85#FFFFFF#000000##FFFFFF
##1F1B851.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002983
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f1b85;
/* rgb */ color: rgb(31, 27, 133);
/* oklch */ color: oklch(31.9% 0.167 273.2);
Tailwind
colors: {
  custom: {
    50: '#6d5aaa',
    500: '#1f1b85',
    950: '#000000',
  },
}
SCSS
$custom: #1f1b85;
$custom-light: #6d5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1b85",
  "rgb": {
    "r": 31,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 242.264,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31915,
    "c": 0.16707,
    "h": 273.2
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#1F1B85
secondary
#B4B844
accent
#E93FE3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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