#1F2379#1F2379

#1F2379 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.143 H 272.9°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#1F2379
RGBrgb(31, 35, 121)
HSLhsl(237, 59%, 30%)
HSVhsv(237, 74%, 47%)
CMYKcmyk(74.4%, 71.1%, 0%, 52.5%)
CIE-LABlab(19.53, 29.28, -49.31)
CIE-LCHlch(19.53, 57.35, 300.70°)
OKLaboklab(31.84% 0.0071 -0.1426)
OKLCHoklch(31.84% 0.143 272.9)
XYZxyz(4.6161, 2.8734, 18.3968)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2379 #79751F
analogous
#1F5079 #1F2379 #481F79
triadic
#1F2379 #791F23 #23791F
tetradic
#1F2379 #791F50 #79751F #1F7948
square
#1F2379 #791F50 #79751F #1F7948
split-complementary
#1F2379 #79481F #50791F
monochromatic
#060718 #131548 #1F2379 #2B31AA #434ACF

Accessibility & contrast

On white

13.34
#1F2379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F2379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2379
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2379#FFFFFF#000000##FFFFFF
##1F23791.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2379;
/* rgb */ color: rgb(31, 35, 121);
/* oklch */ color: oklch(31.8% 0.143 272.9);
Tailwind
colors: {
  custom: {
    50: '#695ea1',
    500: '#1f2379',
    950: '#000000',
  },
}
SCSS
$custom: #1f2379;
$custom-light: #695ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2379",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 121
  },
  "hsl": {
    "h": 237.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31838,
    "c": 0.14274,
    "h": 272.9
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#1F2379
secondary
#ACA847
accent
#DB45E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F2379

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

Preview Lab → · Contrast checker → · Palette generator →

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