#1F1874#1F1874

#1F1874 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.148 H 275.7°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#1F1874
RGBrgb(31, 24, 116)
HSLhsl(245, 66%, 27%)
HSVhsv(245, 79%, 45%)
CMYKcmyk(73.3%, 79.3%, 0%, 54.5%)
CIE-LABlab(16.53, 34.33, -51.04)
CIE-LCHlch(16.53, 61.51, 303.92°)
OKLaboklab(29.53% 0.0147 -0.1476)
OKLCHoklch(29.53% 0.148 275.7)
XYZxyz(4.0431, 2.2051, 16.7322)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1874 #6D7418
analogous
#183F74 #1F1874 #4D1874
triadic
#1F1874 #741F18 #18741F
tetradic
#1F1874 #74183F #6D7418 #18744D
square
#1F1874 #74183F #6D7418 #18744D
split-complementary
#1F1874 #744D18 #3F7418
monochromatic
#070519 #110E41 #1F1874 #2D22A7 #3E32D5

Accessibility & contrast

On white

14.57
#1F1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1874
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1874#FFFFFF#000000##FFFFFF
##1F18741.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1874;
/* rgb */ color: rgb(31, 24, 116);
/* oklch */ color: oklch(29.5% 0.148 275.7);
Tailwind
colors: {
  custom: {
    50: '#69579d',
    500: '#1f1874',
    950: '#000000',
  },
}
SCSS
$custom: #1f1874;
$custom-light: #69579d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1874",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 244.565,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29534,
    "c": 0.1483,
    "h": 275.7
  },
  "luminance": 0.02206
}

Semantic roles & 50–950 ramp

primary
#1F1874
secondary
#A1A93F
accent
#E93FDC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1874

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

Preview Lab → · Contrast checker → · Palette generator →

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