#1F1083#1F1083

#1F1083 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.174 H 274.5°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#1F1083
RGBrgb(31, 16, 131)
HSLhsl(248, 78%, 29%)
HSVhsv(248, 88%, 51%)
CMYKcmyk(76.3%, 87.8%, 0%, 48.6%)
CIE-LABlab(16.99, 43.20, -59.87)
CIE-LCHlch(16.99, 73.83, 305.82°)
OKLaboklab(30.39% 0.0136 -0.173)
OKLCHoklch(30.39% 0.174 274.5)
XYZxyz(4.8457, 2.3001, 21.6569)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1083 #748310
analogous
#103B83 #1F1083 #591083
triadic
#1F1083 #831F10 #10831F
tetradic
#1F1083 #83103B #748310 #108359
square
#1F1083 #83103B #748310 #108359
split-complementary
#1F1083 #835910 #3B8310
monochromatic
#06031B #12094C #1F1083 #2C17BA #4129E5

Accessibility & contrast

On white

14.38
#1F1083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1F1083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1083
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1083#FFFFFF#000000##FFFFFF
##1F10831.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F86
Deuteranopia (green-blind)
#002581
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f1083;
/* rgb */ color: rgb(31, 16, 131);
/* oklch */ color: oklch(30.4% 0.174 274.5);
Tailwind
colors: {
  custom: {
    50: '#6e54a8',
    500: '#1f1083',
    950: '#000000',
  },
}
SCSS
$custom: #1f1083;
$custom-light: #6e54a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1083",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 131
  },
  "hsl": {
    "h": 247.826,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30387,
    "c": 0.17358,
    "h": 274.5
  },
  "luminance": 0.02301
}

Semantic roles & 50–950 ramp

primary
#1F1083
secondary
#A8B936
accent
#F533DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1083

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

Preview Lab → · Contrast checker → · Palette generator →

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