#1F2193#1F2193

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

Color values

HEX#1F2193
RGBrgb(31, 33, 147)
HSLhsl(239, 65%, 35%)
HSVhsv(239, 79%, 58%)
CMYKcmyk(78.9%, 77.6%, 0%, 42.4%)
CIE-LABlab(21.89, 39.82, -61.76)
CIE-LCHlch(21.89, 73.48, 302.81°)
OKLaboklab(34.36% 0.0039 -0.1788)
OKLCHoklch(34.36% 0.179 271.3)
XYZxyz(6.3736, 3.4849, 27.9348)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2193 #93911F
analogous
#1F5B93 #1F2193 #571F93
triadic
#1F2193 #931F21 #21931F
tetradic
#1F2193 #931F5B #93911F #1F9357
square
#1F2193 #931F5B #93911F #1F9357
split-complementary
#1F2193 #93571F #5B931F
monochromatic
#0A0A2E #141660 #1F2193 #2A2CC6 #5254DA

Accessibility & contrast

On white

12.37
#1F2193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2193
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2193#FFFFFF#000000##FFFFFF
##1F21931.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2193;
/* rgb */ color: rgb(31, 33, 147);
/* oklch */ color: oklch(34.4% 0.179 271.3);
Tailwind
colors: {
  custom: {
    50: '#705eb4',
    500: '#1f2193',
    950: '#000000',
  },
}
SCSS
$custom: #1f2193;
$custom-light: #705eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2193",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 238.966,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34361,
    "c": 0.17885,
    "h": 271.3
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2193

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

Preview Lab → · Contrast checker → · Palette generator →

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