#1F2194#1F2194

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

Color values

HEX#1F2194
RGBrgb(31, 33, 148)
HSLhsl(239, 65%, 35%)
HSVhsv(239, 79%, 58%)
CMYKcmyk(79.1%, 77.7%, 0%, 42%)
CIE-LABlab(22.00, 40.16, -62.19)
CIE-LCHlch(22.00, 74.03, 302.85°)
OKLaboklab(34.48% 0.0038 -0.1801)
OKLCHoklch(34.48% 0.18 271.2)
XYZxyz(6.4524, 3.5164, 28.3499)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2194 #94921F
analogous
#1F5C94 #1F2194 #571F94
triadic
#1F2194 #941F21 #21941F
tetradic
#1F2194 #941F5C #94921F #1F9457
square
#1F2194 #941F5C #94921F #1F9457
split-complementary
#1F2194 #94571F #5C941F
monochromatic
#0A0A2F #141661 #1F2194 #2A2CC7 #5355DB

Accessibility & contrast

On white

12.33
#1F2194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2194
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2194#FFFFFF#000000##FFFFFF
##1F21941.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2194;
/* rgb */ color: rgb(31, 33, 148);
/* oklch */ color: oklch(34.5% 0.180 271.2);
Tailwind
colors: {
  custom: {
    50: '#715eb5',
    500: '#1f2194',
    950: '#000000',
  },
}
SCSS
$custom: #1f2194;
$custom-light: #715eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2194",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 238.974,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34475,
    "c": 0.1801,
    "h": 271.2
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#1F2194
secondary
#BEBC51
accent
#E53FE8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2194

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

Preview Lab → · Contrast checker → · Palette generator →

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