#1F3A93#1F3A93

#1F3A93 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.150 H 266.4°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#1F3A93
RGBrgb(31, 58, 147)
HSLhsl(226, 65%, 35%)
HSVhsv(226, 79%, 58%)
CMYKcmyk(78.9%, 60.5%, 0%, 42.4%)
CIE-LABlab(27.91, 23.69, -51.87)
CIE-LCHlch(27.91, 57.02, 294.55°)
OKLaboklab(38.74% -0.0095 -0.1499)
OKLCHoklch(38.74% 0.15 266.4)
XYZxyz(7.3427, 5.4232, 28.2579)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A93 #93781F
analogous
#1F7493 #1F3A93 #3E1F93
triadic
#1F3A93 #931F3A #3A931F
tetradic
#1F3A93 #931F74 #93781F #1F933E
square
#1F3A93 #931F74 #93781F #1F933E
split-complementary
#1F3A93 #933E1F #74931F
monochromatic
#0A122E #142660 #1F3A93 #2A4EC6 #5272DA

Accessibility & contrast

On white

10.07
#1F3A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#1F3A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A93
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A93#FFFFFF#000000##FFFFFF
##1F3A931.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004796
Deuteranopia (green-blind)
#003D91
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3a93;
/* rgb */ color: rgb(31, 58, 147);
/* oklch */ color: oklch(38.7% 0.150 266.4);
Tailwind
colors: {
  custom: {
    50: '#6e6fb3',
    500: '#1f3a93',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a93;
$custom-light: #6e6fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a93",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 147
  },
  "hsl": {
    "h": 226.034,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38741,
    "c": 0.15016,
    "h": 266.4
  },
  "luminance": 0.05424
}

Semantic roles & 50–950 ramp

primary
#1F3A93
secondary
#BEA450
accent
#C140E8
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3A93

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

Preview Lab → · Contrast checker → · Palette generator →

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