#1F2874#1F2874

#1F2874 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.129 H 271.7°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#1F2874
RGBrgb(31, 40, 116)
HSLhsl(234, 58%, 29%)
HSVhsv(234, 73%, 45%)
CMYKcmyk(73.3%, 65.5%, 0%, 54.5%)
CIE-LABlab(20.32, 24.00, -44.81)
CIE-LCHlch(20.32, 50.83, 298.17°)
OKLaboklab(32.27% 0.0039 -0.1294)
OKLCHoklch(32.27% 0.129 271.7)
XYZxyz(4.4752, 3.0694, 16.8762)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2874 #746B1F
analogous
#1F5374 #1F2874 #411F74
triadic
#1F2874 #741F28 #28741F
tetradic
#1F2874 #741F53 #746B1F #1F7441
square
#1F2874 #741F53 #746B1F #1F7441
split-complementary
#1F2874 #74411F #53741F
monochromatic
#060818 #121744 #1F2874 #2C39A4 #4150CC

Accessibility & contrast

On white

13.01
#1F2874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2874
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2874#FFFFFF#000000##FFFFFF
##1F28741.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#003B4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2874;
/* rgb */ color: rgb(31, 40, 116);
/* oklch */ color: oklch(32.3% 0.129 271.7);
Tailwind
colors: {
  custom: {
    50: '#68629d',
    500: '#1f2874',
    950: '#000000',
  },
}
SCSS
$custom: #1f2874;
$custom-light: #68629d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2874",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 233.647,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32266,
    "c": 0.12943,
    "h": 271.7
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#1F2874
secondary
#A89D47
accent
#D147E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2874

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

Preview Lab → · Contrast checker → · Palette generator →

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