#1F2494#1F2494

#1F2494 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.177 H 270.8°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#1F2494
RGBrgb(31, 36, 148)
HSLhsl(237, 65%, 35%)
HSVhsv(237, 79%, 58%)
CMYKcmyk(79.1%, 75.7%, 0%, 42%)
CIE-LABlab(22.62, 38.41, -61.17)
CIE-LCHlch(22.62, 72.23, 302.13°)
OKLaboklab(34.91% 0.0026 -0.1771)
OKLCHoklch(34.91% 0.177 270.8)
XYZxyz(6.5394, 3.6905, 28.3789)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2494 #948F1F
analogous
#1F5E94 #1F2494 #551F94
triadic
#1F2494 #941F24 #24941F
tetradic
#1F2494 #941F5E #948F1F #1F9455
square
#1F2494 #941F5E #948F1F #1F9455
split-complementary
#1F2494 #94551F #5E941F
monochromatic
#0A0B2F #141861 #1F2494 #2A30C7 #5358DB

Accessibility & contrast

On white

12.08
#1F2494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2494
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2494#FFFFFF#000000##FFFFFF
##1F24941.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2494;
/* rgb */ color: rgb(31, 36, 148);
/* oklch */ color: oklch(34.9% 0.177 270.8);
Tailwind
colors: {
  custom: {
    50: '#7060b5',
    500: '#1f2494',
    950: '#000000',
  },
}
SCSS
$custom: #1f2494;
$custom-light: #7060b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2494",
  "rgb": {
    "r": 31,
    "g": 36,
    "b": 148
  },
  "hsl": {
    "h": 237.436,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34912,
    "c": 0.17714,
    "h": 270.8
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#1F2494
secondary
#BEB951
accent
#E13FE8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2494

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

Preview Lab → · Contrast checker → · Palette generator →

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