#1F2F76#1F2F76

#1F2F76 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.123 H 269.1°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#1F2F76
RGBrgb(31, 47, 118)
HSLhsl(229, 58%, 29%)
HSVhsv(229, 74%, 46%)
CMYKcmyk(73.7%, 60.2%, 0%, 53.7%)
CIE-LABlab(22.42, 19.88, -42.68)
CIE-LCHlch(22.42, 47.08, 294.98°)
OKLaboklab(33.88% -0.0019 -0.123)
OKLCHoklch(33.88% 0.123 269.1)
XYZxyz(4.8505, 3.6319, 17.5814)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F76 #76661F
analogous
#1F5B76 #1F2F76 #3B1F76
triadic
#1F2F76 #761F2F #2F761F
tetradic
#1F2F76 #761F5B #76661F #1F763B
square
#1F2F76 #761F5B #76661F #1F763B
split-complementary
#1F2F76 #763B1F #5B761F
monochromatic
#060A18 #121C46 #1F2F76 #2C42A6 #425CCD

Accessibility & contrast

On white

12.16
#1F2F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F76
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F76#FFFFFF#000000##FFFFFF
##1F2F761.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#00414D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2f76;
/* rgb */ color: rgb(31, 47, 118);
/* oklch */ color: oklch(33.9% 0.123 269.1);
Tailwind
colors: {
  custom: {
    50: '#68679e',
    500: '#1f2f76',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f76;
$custom-light: #68679e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f76",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 228.966,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33875,
    "c": 0.12303,
    "h": 269.1
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#1F2F76
secondary
#AA9847
accent
#C546E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F2F76

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

Preview Lab → · Contrast checker → · Palette generator →

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