#1F1979#1F1979

#1F1979 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.154 H 274.8°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#1F1979
RGBrgb(31, 25, 121)
HSLhsl(244, 66%, 29%)
HSVhsv(244, 79%, 47%)
CMYKcmyk(74.4%, 79.3%, 0%, 52.5%)
CIE-LABlab(17.30, 35.47, -52.98)
CIE-LCHlch(17.30, 63.75, 303.81°)
OKLaboklab(30.25% 0.013 -0.1532)
OKLCHoklch(30.25% 0.154 274.8)
XYZxyz(4.3628, 2.3666, 18.3123)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1979 #737919
analogous
#194379 #1F1979 #4F1979
triadic
#1F1979 #791F19 #19791F
tetradic
#1F1979 #791943 #737919 #19794F
square
#1F1979 #791943 #737919 #19794F
split-complementary
#1F1979 #794F19 #437919
monochromatic
#060519 #120F46 #1F1979 #2C23AC #4137D6

Accessibility & contrast

On white

14.25
#1F1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F1979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1979
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1979#FFFFFF#000000##FFFFFF
##1F19791.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002677
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f1979;
/* rgb */ color: rgb(31, 25, 121);
/* oklch */ color: oklch(30.3% 0.154 274.8);
Tailwind
colors: {
  custom: {
    50: '#6a58a1',
    500: '#1f1979',
    950: '#000000',
  },
}
SCSS
$custom: #1f1979;
$custom-light: #6a58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1979",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 243.75,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3025,
    "c": 0.15375,
    "h": 274.8
  },
  "luminance": 0.02367
}

Semantic roles & 50–950 ramp

primary
#1F1979
secondary
#A7AE40
accent
#E93FDE
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1F1979

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

Preview Lab → · Contrast checker → · Palette generator →

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