#1F4092#1F4092

#1F4092 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.141 H 264.3°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#1F4092
RGBrgb(31, 64, 146)
HSLhsl(223, 65%, 35%)
HSVhsv(223, 79%, 57%)
CMYKcmyk(78.8%, 56.2%, 0%, 42.7%)
CIE-LABlab(29.49, 19.17, -48.67)
CIE-LCHlch(29.49, 52.31, 291.49°)
OKLaboklab(39.91% -0.0139 -0.1404)
OKLCHoklch(39.91% 0.141 264.3)
XYZxyz(7.5849, 6.0326, 27.9532)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4092 #92711F
analogous
#1F7992 #1F4092 #381F92
triadic
#1F4092 #921F40 #40921F
tetradic
#1F4092 #921F79 #92711F #1F9238
square
#1F4092 #921F79 #92711F #1F9238
split-complementary
#1F4092 #92381F #79921F
monochromatic
#0A142D #142A60 #1F4092 #2A56C4 #5179DA

Accessibility & contrast

On white

9.52
#1F4092 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F4092 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4092
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4092#FFFFFF#000000##FFFFFF
##1F40921.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B95
Deuteranopia (green-blind)
#004090
Tritanopia (blue-blind)
#005462
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f4092;
/* rgb */ color: rgb(31, 64, 146);
/* oklch */ color: oklch(39.9% 0.141 264.3);
Tailwind
colors: {
  custom: {
    50: '#6d74b3',
    500: '#1f4092',
    950: '#000000',
  },
}
SCSS
$custom: #1f4092;
$custom-light: #6d74b3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4092",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 146
  },
  "hsl": {
    "h": 222.783,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39907,
    "c": 0.14106,
    "h": 264.3
  },
  "luminance": 0.06033
}

Semantic roles & 50–950 ramp

primary
#1F4092
secondary
#BD9E50
accent
#B840E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4092

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

Preview Lab → · Contrast checker → · Palette generator →

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