#1F2391#1F2391

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

Color values

HEX#1F2391
RGBrgb(31, 35, 145)
HSLhsl(238, 65%, 35%)
HSVhsv(238, 79%, 57%)
CMYKcmyk(78.6%, 75.9%, 0%, 43.1%)
CIE-LABlab(22.08, 37.96, -60.21)
CIE-LCHlch(22.08, 71.17, 302.23°)
OKLaboklab(34.43% 0.0035 -0.1743)
OKLCHoklch(34.43% 0.174 271.1)
XYZxyz(6.2752, 3.5370, 27.1346)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2391 #918D1F
analogous
#1F5C91 #1F2391 #541F91
triadic
#1F2391 #911F23 #23911F
tetradic
#1F2391 #911F5C #918D1F #1F9154
square
#1F2391 #911F5C #918D1F #1F9154
split-complementary
#1F2391 #91541F #5C911F
monochromatic
#090B2C #14175F #1F2391 #2A2FC3 #5155DA

Accessibility & contrast

On white

12.30
#1F2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2391
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2391#FFFFFF#000000##FFFFFF
##1F23911.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2391;
/* rgb */ color: rgb(31, 35, 145);
/* oklch */ color: oklch(34.4% 0.174 271.1);
Tailwind
colors: {
  custom: {
    50: '#705fb2',
    500: '#1f2391',
    950: '#000000',
  },
}
SCSS
$custom: #1f2391;
$custom-light: #705fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2391",
  "rgb": {
    "r": 31,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 237.895,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34428,
    "c": 0.17436,
    "h": 271.1
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#1F2391
secondary
#BDB94F
accent
#E240E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2391

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

Preview Lab → · Contrast checker → · Palette generator →

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