#1F2079#1F2079

#1F2079 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.146 H 273.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#1F2079
RGBrgb(31, 32, 121)
HSLhsl(239, 59%, 30%)
HSVhsv(239, 74%, 47%)
CMYKcmyk(74.4%, 73.6%, 0%, 52.5%)
CIE-LABlab(18.82, 31.22, -50.48)
CIE-LCHlch(18.82, 59.35, 301.74°)
OKLaboklab(31.33% 0.009 -0.146)
OKLCHoklch(31.33% 0.146 273.5)
XYZxyz(4.5316, 2.7044, 18.3686)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2079 #79781F
analogous
#1F4D79 #1F2079 #4B1F79
triadic
#1F2079 #791F20 #20791F
tetradic
#1F2079 #791F4D #79781F #1F794B
square
#1F2079 #791F4D #79781F #1F794B
split-complementary
#1F2079 #794B1F #4D791F
monochromatic
#060618 #131348 #1F2079 #2B2DAA #4345CF

Accessibility & contrast

On white

13.63
#1F2079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F2079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2079
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2079#FFFFFF#000000##FFFFFF
##1F20791.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2079;
/* rgb */ color: rgb(31, 32, 121);
/* oklch */ color: oklch(31.3% 0.146 273.5);
Tailwind
colors: {
  custom: {
    50: '#6a5ca1',
    500: '#1f2079',
    950: '#000000',
  },
}
SCSS
$custom: #1f2079;
$custom-light: #6a5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2079",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 239.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31326,
    "c": 0.14625,
    "h": 273.5
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#1F2079
secondary
#ACAB47
accent
#E145E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F2079

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

Preview Lab → · Contrast checker → · Palette generator →

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