#1F2D71#1F2D71

#1F2D71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.0% C 0.118 H 269.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#1F2D71
RGBrgb(31, 45, 113)
HSLhsl(230, 57%, 28%)
HSVhsv(230, 73%, 44%)
CMYKcmyk(72.6%, 60.2%, 0%, 55.7%)
CIE-LABlab(21.43, 19.31, -41.07)
CIE-LCHlch(21.43, 45.39, 295.18°)
OKLaboklab(33.01% -0.0003 -0.1183)
OKLCHoklch(33.01% 0.118 269.9)
XYZxyz(4.4831, 3.3599, 16.0318)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D71 #71631F
analogous
#1F5671 #1F2D71 #3A1F71
triadic
#1F2D71 #711F2D #2D711F
tetradic
#1F2D71 #711F56 #71631F #1F713A
square
#1F2D71 #711F56 #71631F #1F713A
split-complementary
#1F2D71 #713A1F #56711F
monochromatic
#070A18 #121A41 #1F2D71 #2C40A1 #4058CB

Accessibility & contrast

On white

12.56
#1F2D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2D71
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D71#FFFFFF#000000##FFFFFF
##1F2D711.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2d71;
/* rgb */ color: rgb(31, 45, 113);
/* oklch */ color: oklch(33.0% 0.118 269.9);
Tailwind
colors: {
  custom: {
    50: '#66659a',
    500: '#1f2d71',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d71;
$custom-light: #66659a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d71",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 229.756,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33008,
    "c": 0.11833,
    "h": 269.9
  },
  "luminance": 0.0336
}

Semantic roles & 50–950 ramp

primary
#1F2D71
secondary
#A59547
accent
#C648E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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