#1F2D79#1F2D79

#1F2D79 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.130 H 269.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#1F2D79
RGBrgb(31, 45, 121)
HSLhsl(231, 59%, 30%)
HSVhsv(231, 74%, 47%)
CMYKcmyk(74.4%, 62.8%, 0%, 52.5%)
CIE-LABlab(22.12, 22.47, -45.07)
CIE-LCHlch(22.12, 50.36, 296.49°)
OKLaboklab(33.73% -0.0002 -0.1301)
OKLCHoklch(33.73% 0.13 269.9)
XYZxyz(4.9535, 3.5481, 18.5092)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D79 #796B1F
analogous
#1F5A79 #1F2D79 #3E1F79
triadic
#1F2D79 #791F2D #2D791F
tetradic
#1F2D79 #791F5A #796B1F #1F793E
square
#1F2D79 #791F5A #796B1F #1F793E
split-complementary
#1F2D79 #793E1F #5A791F
monochromatic
#060918 #131B48 #1F2D79 #2B3FAA #4359CF

Accessibility & contrast

On white

12.28
#1F2D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D79
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D79#FFFFFF#000000##FFFFFF
##1F2D791.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2d79;
/* rgb */ color: rgb(31, 45, 121);
/* oklch */ color: oklch(33.7% 0.130 269.9);
Tailwind
colors: {
  custom: {
    50: '#6865a0',
    500: '#1f2d79',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d79;
$custom-light: #6865a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d79",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 230.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33734,
    "c": 0.13008,
    "h": 269.9
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#1F2D79
secondary
#AC9D47
accent
#CA45E2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #1F2D79

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

Preview Lab → · Contrast checker → · Palette generator →

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