#1F1079#1F1079

#1F1079 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 29.1% C 0.162 H 276.0°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#1F1079
RGBrgb(31, 16, 121)
HSLhsl(249, 77%, 27%)
HSVhsv(249, 87%, 47%)
CMYKcmyk(74.4%, 86.8%, 0%, 52.5%)
CIE-LABlab(15.71, 40.11, -55.62)
CIE-LCHlch(15.71, 68.58, 305.80°)
OKLaboklab(29.14% 0.0168 -0.1607)
OKLCHoklch(29.14% 0.162 276)
XYZxyz(4.2004, 2.0420, 18.2582)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1079 #6A7910
analogous
#103679 #1F1079 #531079
triadic
#1F1079 #791F10 #10791F
tetradic
#1F1079 #791036 #6A7910 #107953
square
#1F1079 #791036 #6A7910 #107953
split-complementary
#1F1079 #795310 #367910
monochromatic
#07041B #110943 #1F1079 #2D17AF #3D22E2

Accessibility & contrast

On white

14.91
#1F1079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F1079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1079
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1079#FFFFFF#000000##FFFFFF
##1F10791.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B7C
Deuteranopia (green-blind)
#002277
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f1079;
/* rgb */ color: rgb(31, 16, 121);
/* oklch */ color: oklch(29.1% 0.162 276.0);
Tailwind
colors: {
  custom: {
    50: '#6b53a1',
    500: '#1f1079',
    950: '#000000',
  },
}
SCSS
$custom: #1f1079;
$custom-light: #6b53a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1079",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 121
  },
  "hsl": {
    "h": 248.571,
    "s": 76.642,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29138,
    "c": 0.16163,
    "h": 276
  },
  "luminance": 0.02042
}

Semantic roles & 50–950 ramp

primary
#1F1079
secondary
#9EB035
accent
#F335D8
background
#F7F4FA
surface
#EDE7F3
border
#C8C3CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F1079

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

Preview Lab → · Contrast checker → · Palette generator →

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