#1F2179#1F2179

#1F2179 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.145 H 273.3°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#1F2179
RGBrgb(31, 33, 121)
HSLhsl(239, 59%, 30%)
HSVhsv(239, 74%, 47%)
CMYKcmyk(74.4%, 72.7%, 0%, 52.5%)
CIE-LABlab(19.05, 30.58, -50.09)
CIE-LCHlch(19.05, 58.69, 301.41°)
OKLaboklab(31.49% 0.0084 -0.1449)
OKLCHoklch(31.49% 0.145 273.3)
XYZxyz(4.5590, 2.7590, 18.3777)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2179 #79771F
analogous
#1F4E79 #1F2179 #4A1F79
triadic
#1F2179 #791F21 #21791F
tetradic
#1F2179 #791F4E #79771F #1F794A
square
#1F2179 #791F4E #79771F #1F794A
split-complementary
#1F2179 #794A1F #4E791F
monochromatic
#060718 #131448 #1F2179 #2B2EAA #4347CF

Accessibility & contrast

On white

13.53
#1F2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2179
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2179#FFFFFF#000000##FFFFFF
##1F21791.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2179;
/* rgb */ color: rgb(31, 33, 121);
/* oklch */ color: oklch(31.5% 0.145 273.3);
Tailwind
colors: {
  custom: {
    50: '#6a5da1',
    500: '#1f2179',
    950: '#000000',
  },
}
SCSS
$custom: #1f2179;
$custom-light: #6a5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2179",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 238.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31493,
    "c": 0.1451,
    "h": 273.3
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#1F2179
secondary
#ACAA47
accent
#DF45E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F2179

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

Preview Lab → · Contrast checker → · Palette generator →

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