#1F2292#1F2292

#1F2292 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.177 H 271.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#1F2292
RGBrgb(31, 34, 146)
HSLhsl(238, 65%, 35%)
HSVhsv(238, 79%, 57%)
CMYKcmyk(78.8%, 76.7%, 0%, 42.7%)
CIE-LABlab(21.98, 38.89, -60.99)
CIE-LCHlch(21.98, 72.34, 302.53°)
OKLaboklab(34.39% 0.0037 -0.1766)
OKLCHoklch(34.39% 0.177 271.2)
XYZxyz(6.3237, 3.5100, 27.5328)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2292 #928F1F
analogous
#1F5B92 #1F2292 #561F92
triadic
#1F2292 #921F22 #22921F
tetradic
#1F2292 #921F5B #928F1F #1F9256
square
#1F2292 #921F5B #928F1F #1F9256
split-complementary
#1F2292 #92561F #5B921F
monochromatic
#0A0A2D #141660 #1F2292 #2A2EC4 #5155DA

Accessibility & contrast

On white

12.34
#1F2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2292
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2292#FFFFFF#000000##FFFFFF
##1F22921.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2292;
/* rgb */ color: rgb(31, 34, 146);
/* oklch */ color: oklch(34.4% 0.177 271.2);
Tailwind
colors: {
  custom: {
    50: '#705fb3',
    500: '#1f2292',
    950: '#000000',
  },
}
SCSS
$custom: #1f2292;
$custom-light: #705fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2292",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 238.435,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34392,
    "c": 0.17663,
    "h": 271.2
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#1F2292
secondary
#BDBA50
accent
#E440E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2292

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

Preview Lab → · Contrast checker → · Palette generator →

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