#1F1783#1F1783

#1F1783 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.2% C 0.168 H 273.9°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#1F1783
RGBrgb(31, 23, 131)
HSLhsl(244, 70%, 30%)
HSVhsv(244, 82%, 51%)
CMYKcmyk(76.3%, 82.4%, 0%, 48.6%)
CIE-LABlab(18.11, 39.91, -58.01)
CIE-LCHlch(18.11, 70.41, 304.53°)
OKLaboklab(31.16% 0.0113 -0.1678)
OKLCHoklch(31.16% 0.168 273.9)
XYZxyz(4.9668, 2.5423, 21.6973)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1783 #7B8317
analogous
#174583 #1F1783 #551783
triadic
#1F1783 #831F17 #17831F
tetradic
#1F1783 #831745 #7B8317 #178355
square
#1F1783 #831745 #7B8317 #178355
split-complementary
#1F1783 #835517 #458317
monochromatic
#06051B #130E4F #1F1783 #2B20B7 #4438DC

Accessibility & contrast

On white

13.92
#1F1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1783
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1783#FFFFFF#000000##FFFFFF
##1F17831.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002781
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f1783;
/* rgb */ color: rgb(31, 23, 131);
/* oklch */ color: oklch(31.2% 0.168 273.9);
Tailwind
colors: {
  custom: {
    50: '#6d57a8',
    500: '#1f1783',
    950: '#000000',
  },
}
SCSS
$custom: #1f1783;
$custom-light: #6d57a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1783",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 244.444,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31159,
    "c": 0.16818,
    "h": 273.9
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#1F1783
secondary
#AEB73F
accent
#ED3BE0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1783

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

Preview Lab → · Contrast checker → · Palette generator →

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