#1F2190#1F2190

#1F2190 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.175 H 271.5°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#1F2190
RGBrgb(31, 33, 144)
HSLhsl(239, 65%, 34%)
HSVhsv(239, 78%, 56%)
CMYKcmyk(78.5%, 77.1%, 0%, 43.5%)
CIE-LABlab(21.55, 38.78, -60.46)
CIE-LCHlch(21.55, 71.83, 302.68°)
OKLaboklab(34.02% 0.0045 -0.175)
OKLCHoklch(34.02% 0.175 271.5)
XYZxyz(6.1413, 3.3920, 26.7112)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2190 #908E1F
analogous
#1F5A90 #1F2190 #561F90
triadic
#1F2190 #901F21 #21901F
tetradic
#1F2190 #901F5A #908E1F #1F9056
square
#1F2190 #901F5A #908E1F #1F9056
split-complementary
#1F2190 #90561F #5A901F
monochromatic
#090A2B #14155E #1F2190 #2A2DC2 #5052D9

Accessibility & contrast

On white

12.51
#1F2190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F2190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2190
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2190#FFFFFF#000000##FFFFFF
##1F21901.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#002E8E
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2190;
/* rgb */ color: rgb(31, 33, 144);
/* oklch */ color: oklch(34.0% 0.175 271.5);
Tailwind
colors: {
  custom: {
    50: '#705eb2',
    500: '#1f2190',
    950: '#000000',
  },
}
SCSS
$custom: #1f2190;
$custom-light: #705eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2190",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 144
  },
  "hsl": {
    "h": 238.938,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3402,
    "c": 0.1751,
    "h": 271.5
  },
  "luminance": 0.03393
}

Semantic roles & 50–950 ramp

primary
#1F2190
secondary
#BCBA4E
accent
#E540E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2190

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

Preview Lab → · Contrast checker → · Palette generator →

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