#1F2F79#1F2F79

#1F2F79 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.127 H 269.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#1F2F79
RGBrgb(31, 47, 121)
HSLhsl(229, 59%, 30%)
HSVhsv(229, 74%, 47%)
CMYKcmyk(74.4%, 61.2%, 0%, 52.5%)
CIE-LABlab(22.67, 21.07, -44.17)
CIE-LCHlch(22.67, 48.94, 295.50°)
OKLaboklab(34.14% -0.0018 -0.1274)
OKLCHoklch(34.14% 0.127 269.2)
XYZxyz(5.0316, 3.7043, 18.5353)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F79 #79691F
analogous
#1F5C79 #1F2F79 #3C1F79
triadic
#1F2F79 #791F2F #2F791F
tetradic
#1F2F79 #791F5C #79691F #1F793C
square
#1F2F79 #791F5C #79691F #1F793C
split-complementary
#1F2F79 #793C1F #5C791F
monochromatic
#060918 #131C48 #1F2F79 #2B42AA #435CCF

Accessibility & contrast

On white

12.06
#1F2F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F79
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F79#FFFFFF#000000##FFFFFF
##1F2F791.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2f79;
/* rgb */ color: rgb(31, 47, 121);
/* oklch */ color: oklch(34.1% 0.127 269.2);
Tailwind
colors: {
  custom: {
    50: '#6867a0',
    500: '#1f2f79',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f79;
$custom-light: #6867a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f79",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 229.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34144,
    "c": 0.12743,
    "h": 269.2
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#1F2F79
secondary
#AC9A47
accent
#C645E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #1F2F79

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

Preview Lab → · Contrast checker → · Palette generator →

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