#1F2E71#1F2E71

#1F2E71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.2% C 0.117 H 269.4°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#1F2E71
RGBrgb(31, 46, 113)
HSLhsl(229, 57%, 28%)
HSVhsv(229, 73%, 44%)
CMYKcmyk(72.6%, 59.3%, 0%, 55.7%)
CIE-LABlab(21.72, 18.60, -40.61)
CIE-LCHlch(21.72, 44.67, 294.61°)
OKLaboklab(33.22% -0.0012 -0.117)
OKLCHoklch(33.22% 0.117 269.4)
XYZxyz(4.5217, 3.4371, 16.0447)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E71 #71621F
analogous
#1F5771 #1F2E71 #391F71
triadic
#1F2E71 #711F2E #2E711F
tetradic
#1F2E71 #711F57 #71621F #1F7139
square
#1F2E71 #711F57 #71621F #1F7139
split-complementary
#1F2E71 #71391F #57711F
monochromatic
#070A18 #121A41 #1F2E71 #2C42A1 #4059CB

Accessibility & contrast

On white

12.44
#1F2E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E71
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E71#FFFFFF#000000##FFFFFF
##1F2E711.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2e71;
/* rgb */ color: rgb(31, 46, 113);
/* oklch */ color: oklch(33.2% 0.117 269.4);
Tailwind
colors: {
  custom: {
    50: '#66669a',
    500: '#1f2e71',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e71;
$custom-light: #66669a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e71",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 229.024,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33221,
    "c": 0.11697,
    "h": 269.4
  },
  "luminance": 0.03438
}

Semantic roles & 50–950 ramp

primary
#1F2E71
secondary
#A59447
accent
#C448E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #1F2E71

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

Preview Lab → · Contrast checker → · Palette generator →

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