#1F2279#1F2279

#1F2279 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.144 H 273.1°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#1F2279
RGBrgb(31, 34, 121)
HSLhsl(238, 59%, 30%)
HSVhsv(238, 74%, 47%)
CMYKcmyk(74.4%, 71.9%, 0%, 52.5%)
CIE-LABlab(19.29, 29.93, -49.70)
CIE-LCHlch(19.29, 58.02, 301.06°)
OKLaboklab(31.66% 0.0078 -0.1437)
OKLCHoklch(31.66% 0.144 273.1)
XYZxyz(4.5871, 2.8154, 18.3871)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2279 #79761F
analogous
#1F4F79 #1F2279 #491F79
triadic
#1F2279 #791F22 #22791F
tetradic
#1F2279 #791F4F #79761F #1F7949
square
#1F2279 #791F4F #79761F #1F7949
split-complementary
#1F2279 #79491F #4F791F
monochromatic
#060718 #131448 #1F2279 #2B30AA #4348CF

Accessibility & contrast

On white

13.43
#1F2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2279
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2279#FFFFFF#000000##FFFFFF
##1F22791.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f2279;
/* rgb */ color: rgb(31, 34, 121);
/* oklch */ color: oklch(31.7% 0.144 273.1);
Tailwind
colors: {
  custom: {
    50: '#6a5da1',
    500: '#1f2279',
    950: '#000000',
  },
}
SCSS
$custom: #1f2279;
$custom-light: #6a5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2279",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 238,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31664,
    "c": 0.14393,
    "h": 273.1
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#1F2279
secondary
#ACA947
accent
#DD45E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F2279

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

Preview Lab → · Contrast checker → · Palette generator →

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