#1F2593#1F2593

#1F2593 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.175 H 270.8°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#1F2593
RGBrgb(31, 37, 147)
HSLhsl(237, 65%, 35%)
HSVhsv(237, 79%, 58%)
CMYKcmyk(78.9%, 74.8%, 0%, 42.4%)
CIE-LABlab(22.72, 37.46, -60.38)
CIE-LCHlch(22.72, 71.06, 301.82°)
OKLaboklab(34.95% 0.0023 -0.1748)
OKLCHoklch(34.95% 0.175 270.8)
XYZxyz(6.4913, 3.7203, 27.9741)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2593 #938D1F
analogous
#1F5F93 #1F2593 #531F93
triadic
#1F2593 #931F25 #25931F
tetradic
#1F2593 #931F5F #938D1F #1F9353
square
#1F2593 #931F5F #938D1F #1F9353
split-complementary
#1F2593 #93531F #5F931F
monochromatic
#0A0C2E #141860 #1F2593 #2A32C6 #5259DA

Accessibility & contrast

On white

12.04
#1F2593 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2593 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2593
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2593#FFFFFF#000000##FFFFFF
##1F25931.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2593;
/* rgb */ color: rgb(31, 37, 147);
/* oklch */ color: oklch(35.0% 0.175 270.8);
Tailwind
colors: {
  custom: {
    50: '#7061b4',
    500: '#1f2593',
    950: '#000000',
  },
}
SCSS
$custom: #1f2593;
$custom-light: #7061b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2593",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 147
  },
  "hsl": {
    "h": 236.897,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34953,
    "c": 0.17486,
    "h": 270.8
  },
  "luminance": 0.03721
}

Semantic roles & 50–950 ramp

primary
#1F2593
secondary
#BEB850
accent
#DF40E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2593

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

Preview Lab → · Contrast checker → · Palette generator →

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