#1F2F71#1F2F71

#1F2F71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.4% C 0.116 H 269.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#1F2F71
RGBrgb(31, 47, 113)
HSLhsl(228, 57%, 28%)
HSVhsv(228, 73%, 44%)
CMYKcmyk(72.6%, 58.4%, 0%, 55.7%)
CIE-LABlab(22.00, 17.89, -40.15)
CIE-LCHlch(22.00, 43.95, 294.02°)
OKLaboklab(33.44% -0.0021 -0.1156)
OKLCHoklch(33.44% 0.116 269)
XYZxyz(4.5612, 3.5161, 16.0579)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F71 #71611F
analogous
#1F5871 #1F2F71 #381F71
triadic
#1F2F71 #711F2F #2F711F
tetradic
#1F2F71 #711F58 #71611F #1F7138
square
#1F2F71 #711F58 #71611F #1F7138
split-complementary
#1F2F71 #71381F #58711F
monochromatic
#070A18 #121B41 #1F2F71 #2C43A1 #405BCB

Accessibility & contrast

On white

12.33
#1F2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F71
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F71#FFFFFF#000000##FFFFFF
##1F2F711.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2f71;
/* rgb */ color: rgb(31, 47, 113);
/* oklch */ color: oklch(33.4% 0.116 269.0);
Tailwind
colors: {
  custom: {
    50: '#66679a',
    500: '#1f2f71',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f71;
$custom-light: #66679a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f71",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 228.293,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33436,
    "c": 0.1156,
    "h": 269
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#1F2F71
secondary
#A59347
accent
#C248E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #1F2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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