#1F3893#1F3893

#1F3893 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.153 H 266.9°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#1F3893
RGBrgb(31, 56, 147)
HSLhsl(227, 65%, 35%)
HSVhsv(227, 79%, 58%)
CMYKcmyk(78.9%, 61.9%, 0%, 42.4%)
CIE-LABlab(27.37, 25.06, -52.75)
CIE-LCHlch(27.37, 58.40, 295.41°)
OKLaboklab(38.34% -0.0082 -0.1525)
OKLCHoklch(38.34% 0.153 266.9)
XYZxyz(7.2439, 5.2254, 28.2249)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3893 #937A1F
analogous
#1F7293 #1F3893 #401F93
triadic
#1F3893 #931F38 #38931F
tetradic
#1F3893 #931F72 #937A1F #1F9340
square
#1F3893 #931F72 #937A1F #1F9340
split-complementary
#1F3893 #93401F #72931F
monochromatic
#0A112E #142560 #1F3893 #2A4BC6 #526FDA

Accessibility & contrast

On white

10.27
#1F3893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1F3893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3893
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3893#FFFFFF#000000##FFFFFF
##1F38931.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004696
Deuteranopia (green-blind)
#003B91
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3893;
/* rgb */ color: rgb(31, 56, 147);
/* oklch */ color: oklch(38.3% 0.153 266.9);
Tailwind
colors: {
  custom: {
    50: '#6e6eb4',
    500: '#1f3893',
    950: '#000000',
  },
}
SCSS
$custom: #1f3893;
$custom-light: #6e6eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3893",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 147
  },
  "hsl": {
    "h": 227.069,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38339,
    "c": 0.15269,
    "h": 266.9
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#1F3893
secondary
#BEA650
accent
#C440E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3893

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

Preview Lab → · Contrast checker → · Palette generator →

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