#1F1180#1F1180

#1F1180 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.169 H 274.8°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#1F1180
RGBrgb(31, 17, 128)
HSLhsl(248, 77%, 28%)
HSVhsv(248, 87%, 50%)
CMYKcmyk(75.8%, 86.7%, 0%, 49.8%)
CIE-LABlab(16.75, 41.85, -58.36)
CIE-LCHlch(16.75, 71.81, 305.64°)
OKLaboklab(30.11% 0.0142 -0.1687)
OKLCHoklch(30.11% 0.169 274.8)
XYZxyz(4.6605, 2.2503, 20.6066)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1180 #728011
analogous
#113A80 #1F1180 #561180
triadic
#1F1180 #801F11 #11801F
tetradic
#1F1180 #80113A #728011 #118056
square
#1F1180 #80113A #728011 #118056
split-complementary
#1F1180 #805611 #3A8011
monochromatic
#07041B #120A4A #1F1180 #2C18B6 #4029E3

Accessibility & contrast

On white

14.48
#1F1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1180
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1180#FFFFFF#000000##FFFFFF
##1F11801.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E83
Deuteranopia (green-blind)
#00247E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1180;
/* rgb */ color: rgb(31, 17, 128);
/* oklch */ color: oklch(30.1% 0.169 274.8);
Tailwind
colors: {
  custom: {
    50: '#6d54a6',
    500: '#1f1180',
    950: '#000000',
  },
}
SCSS
$custom: #1f1180;
$custom-light: #6d54a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1180",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 247.568,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30111,
    "c": 0.16931,
    "h": 274.8
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#1F1180
secondary
#A6B637
accent
#F335DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1180

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

Preview Lab → · Contrast checker → · Palette generator →

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