#1F2392#1F2392

#1F2392 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.176 H 271.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#1F2392
RGBrgb(31, 35, 146)
HSLhsl(238, 65%, 35%)
HSVhsv(238, 79%, 57%)
CMYKcmyk(78.8%, 76%, 0%, 42.7%)
CIE-LABlab(22.19, 38.31, -60.64)
CIE-LCHlch(22.19, 71.73, 302.28°)
OKLaboklab(34.54% 0.0033 -0.1756)
OKLCHoklch(34.54% 0.176 271.1)
XYZxyz(6.3527, 3.5680, 27.5424)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2392 #928E1F
analogous
#1F5D92 #1F2392 #551F92
triadic
#1F2392 #921F23 #23921F
tetradic
#1F2392 #921F5D #928E1F #1F9255
square
#1F2392 #921F5D #928E1F #1F9255
split-complementary
#1F2392 #92551F #5D921F
monochromatic
#0A0B2D #141760 #1F2392 #2A2FC4 #5156DA

Accessibility & contrast

On white

12.25
#1F2392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2392
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2392#FFFFFF#000000##FFFFFF
##1F23921.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2392;
/* rgb */ color: rgb(31, 35, 146);
/* oklch */ color: oklch(34.5% 0.176 271.1);
Tailwind
colors: {
  custom: {
    50: '#705fb3',
    500: '#1f2392',
    950: '#000000',
  },
}
SCSS
$custom: #1f2392;
$custom-light: #705fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2392",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 146
  },
  "hsl": {
    "h": 237.913,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34539,
    "c": 0.17563,
    "h": 271.1
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#1F2392
secondary
#BDB950
accent
#E240E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2392

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

Preview Lab → · Contrast checker → · Palette generator →

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