#1F1985#1F1985

#1F1985 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.169 H 273.4°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#1F1985
RGBrgb(31, 25, 133)
HSLhsl(243, 68%, 31%)
HSVhsv(243, 81%, 52%)
CMYKcmyk(76.7%, 81.2%, 0%, 47.8%)
CIE-LABlab(18.71, 39.52, -58.27)
CIE-LCHlch(18.71, 70.41, 304.14°)
OKLaboklab(31.65% 0.01 -0.1686)
OKLCHoklch(31.65% 0.169 273.4)
XYZxyz(5.1449, 2.6795, 22.4318)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1985 #7F8519
analogous
#194985 #1F1985 #551985
triadic
#1F1985 #851F19 #19851F
tetradic
#1F1985 #851949 #7F8519 #198555
square
#1F1985 #851949 #7F8519 #198555
split-complementary
#1F1985 #855519 #498519
monochromatic
#07061E #130F51 #1F1985 #2B23B9 #463EDB

Accessibility & contrast

On white

13.67
#1F1985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F1985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1985
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1985#FFFFFF#000000##FFFFFF
##1F19851.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1985;
/* rgb */ color: rgb(31, 25, 133);
/* oklch */ color: oklch(31.6% 0.169 273.4);
Tailwind
colors: {
  custom: {
    50: '#6e58aa',
    500: '#1f1985',
    950: '#000000',
  },
}
SCSS
$custom: #1f1985;
$custom-light: #6e58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1985",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 243.333,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3165,
    "c": 0.1689,
    "h": 273.4
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#1F1985
secondary
#B2B941
accent
#EB3DE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1985

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

Preview Lab → · Contrast checker → · Palette generator →

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