#1F2492#1F2492

#1F2492 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.175 H 271.0°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#1F2492
RGBrgb(31, 36, 146)
HSLhsl(237, 65%, 35%)
HSVhsv(237, 79%, 57%)
CMYKcmyk(78.8%, 75.3%, 0%, 42.7%)
CIE-LABlab(22.40, 37.71, -60.29)
CIE-LCHlch(22.40, 71.12, 302.02°)
OKLaboklab(34.69% 0.0029 -0.1746)
OKLCHoklch(34.69% 0.175 271)
XYZxyz(6.3825, 3.6277, 27.5524)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2492 #928D1F
analogous
#1F5E92 #1F2492 #531F92
triadic
#1F2492 #921F24 #24921F
tetradic
#1F2492 #921F5E #928D1F #1F9253
square
#1F2492 #921F5E #928D1F #1F9253
split-complementary
#1F2492 #92531F #5E921F
monochromatic
#0A0B2D #141860 #1F2492 #2A30C4 #5157DA

Accessibility & contrast

On white

12.17
#1F2492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2492 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2492
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2492#FFFFFF#000000##FFFFFF
##1F24921.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2492;
/* rgb */ color: rgb(31, 36, 146);
/* oklch */ color: oklch(34.7% 0.175 271.0);
Tailwind
colors: {
  custom: {
    50: '#7060b3',
    500: '#1f2492',
    950: '#000000',
  },
}
SCSS
$custom: #1f2492;
$custom-light: #7060b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2492",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 146
  },
  "hsl": {
    "h": 237.391,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3469,
    "c": 0.17461,
    "h": 271
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#1F2492
secondary
#BDB850
accent
#E140E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2492

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

Preview Lab → · Contrast checker → · Palette generator →

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