#1F2291#1F2291

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

Color values

HEX#1F2291
RGBrgb(31, 34, 145)
HSLhsl(238, 65%, 35%)
HSVhsv(238, 79%, 57%)
CMYKcmyk(78.6%, 76.6%, 0%, 43.1%)
CIE-LABlab(21.87, 38.55, -60.55)
CIE-LCHlch(21.87, 71.78, 302.48°)
OKLaboklab(34.28% 0.0039 -0.1753)
OKLCHoklch(34.28% 0.175 271.3)
XYZxyz(6.2462, 3.4790, 27.1249)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2291 #918E1F
analogous
#1F5B91 #1F2291 #551F91
triadic
#1F2291 #911F22 #22911F
tetradic
#1F2291 #911F5B #918E1F #1F9155
square
#1F2291 #911F5B #918E1F #1F9155
split-complementary
#1F2291 #91551F #5B911F
monochromatic
#090A2C #14165F #1F2291 #2A2EC3 #5154DA

Accessibility & contrast

On white

12.38
#1F2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2291
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2291#FFFFFF#000000##FFFFFF
##1F22911.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#002F8F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2291;
/* rgb */ color: rgb(31, 34, 145);
/* oklch */ color: oklch(34.3% 0.175 271.3);
Tailwind
colors: {
  custom: {
    50: '#705fb2',
    500: '#1f2291',
    950: '#000000',
  },
}
SCSS
$custom: #1f2291;
$custom-light: #705fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2291",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 238.421,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34279,
    "c": 0.17537,
    "h": 271.3
  },
  "luminance": 0.0348
}

Semantic roles & 50–950 ramp

primary
#1F2291
secondary
#BDBA4F
accent
#E340E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2291

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

Preview Lab → · Contrast checker → · Palette generator →

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