#1F3D9E#1F3D9E

#1F3D9E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.3% C 0.162 H 266.0°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#1F3D9E
RGBrgb(31, 61, 158)
HSLhsl(226, 67%, 37%)
HSVhsv(226, 80%, 62%)
CMYKcmyk(80.4%, 61.4%, 0%, 38%)
CIE-LABlab(29.65, 25.96, -55.73)
CIE-LCHlch(29.65, 61.48, 294.97°)
OKLaboklab(40.34% -0.0113 -0.1611)
OKLCHoklch(40.34% 0.162 266)
XYZxyz(8.4032, 6.0964, 33.0750)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D9E #9E801F
analogous
#1F7D9E #1F3D9E #411F9E
triadic
#1F3D9E #9E1F3D #3D9E1F
tetradic
#1F3D9E #9E1F7D #9E801F #1F9E41
square
#1F3D9E #9E1F7D #9E801F #1F9E41
split-complementary
#1F3D9E #9E411F #7D9E1F
monochromatic
#0B1538 #15296B #1F3D9E #2951D1 #5978DE

Accessibility & contrast

On white

9.46
#1F3D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F3D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D9E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D9E#FFFFFF#000000##FFFFFF
##1F3D9E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3d9e;
/* rgb */ color: rgb(31, 61, 158);
/* oklch */ color: oklch(40.3% 0.162 266.0);
Tailwind
colors: {
  custom: {
    50: '#7172bb',
    500: '#1f3d9e',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d9e;
$custom-light: #7172bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d9e",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 158
  },
  "hsl": {
    "h": 225.827,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40335,
    "c": 0.16154,
    "h": 266
  },
  "luminance": 0.06097
}

Semantic roles & 50–950 ramp

primary
#1F3D9E
secondary
#C2A956
accent
#C13EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #1F3D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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