#1F2A79#1F2A79

#1F2A79 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.134 H 270.9°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1F2A79
RGBrgb(31, 42, 121)
HSLhsl(233, 59%, 30%)
HSVhsv(233, 74%, 47%)
CMYKcmyk(74.4%, 65.3%, 0%, 52.5%)
CIE-LABlab(21.31, 24.55, -46.39)
CIE-LCHlch(21.31, 52.49, 297.89°)
OKLaboklab(33.14% 0.0022 -0.134)
OKLCHoklch(33.14% 0.134 270.9)
XYZxyz(4.8431, 3.3272, 18.4724)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A79 #796E1F
analogous
#1F5779 #1F2A79 #411F79
triadic
#1F2A79 #791F2A #2A791F
tetradic
#1F2A79 #791F57 #796E1F #1F7941
square
#1F2A79 #791F57 #796E1F #1F7941
split-complementary
#1F2A79 #79411F #57791F
monochromatic
#060818 #131948 #1F2A79 #2B3BAA #4354CF

Accessibility & contrast

On white

12.61
#1F2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A79
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A79#FFFFFF#000000##FFFFFF
##1F2A791.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2a79;
/* rgb */ color: rgb(31, 42, 121);
/* oklch */ color: oklch(33.1% 0.134 270.9);
Tailwind
colors: {
  custom: {
    50: '#6963a0',
    500: '#1f2a79',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a79;
$custom-light: #6963a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a79",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 232.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33137,
    "c": 0.134,
    "h": 270.9
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#1F2A79
secondary
#ACA047
accent
#CF45E2
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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