#1F1689#1F1689

#1F1689 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.176 H 273.3°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#1F1689
RGBrgb(31, 22, 137)
HSLhsl(245, 72%, 31%)
HSVhsv(245, 84%, 54%)
CMYKcmyk(77.4%, 83.9%, 0%, 46.3%)
CIE-LABlab(18.67, 42.35, -60.85)
CIE-LCHlch(18.67, 74.14, 304.84°)
OKLaboklab(31.77% 0.0101 -0.176)
OKLCHoklch(31.77% 0.176 273.3)
XYZxyz(5.3658, 2.6707, 23.8948)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1689 #808916
analogous
#164689 #1F1689 #581689
triadic
#1F1689 #891F16 #16891F
tetradic
#1F1689 #891646 #808916 #168958
square
#1F1689 #891646 #808916 #168958
split-complementary
#1F1689 #895816 #468916
monochromatic
#070520 #130E54 #1F1689 #2B1EBE #473ADF

Accessibility & contrast

On white

13.69
#1F1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1689
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1689#FFFFFF#000000##FFFFFF
##1F16891.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002887
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1689;
/* rgb */ color: rgb(31, 22, 137);
/* oklch */ color: oklch(31.8% 0.176 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f57ad',
    500: '#1f1689',
    950: '#000000',
  },
}
SCSS
$custom: #1f1689;
$custom-light: #6f57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1689",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 244.696,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31765,
    "c": 0.17632,
    "h": 273.3
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#1F1689
secondary
#B3BD3E
accent
#EF39E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1F1689

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

Preview Lab → · Contrast checker → · Palette generator →

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