#1F3D9C#1F3D9C

#1F3D9C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.159 H 265.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#1F3D9C
RGBrgb(31, 61, 156)
HSLhsl(226, 67%, 37%)
HSVhsv(226, 80%, 61%)
CMYKcmyk(80.1%, 60.9%, 0%, 38.8%)
CIE-LABlab(29.48, 25.18, -54.80)
CIE-LCHlch(29.48, 60.30, 294.68°)
OKLaboklab(40.16% -0.0114 -0.1584)
OKLCHoklch(40.16% 0.159 265.9)
XYZxyz(8.2325, 6.0281, 32.1757)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D9C #9C7E1F
analogous
#1F7C9C #1F3D9C #401F9C
triadic
#1F3D9C #9C1F3D #3D9C1F
tetradic
#1F3D9C #9C1F7C #9C7E1F #1F9C40
square
#1F3D9C #9C1F7C #9C7E1F #1F9C40
split-complementary
#1F3D9C #9C401F #7C9C1F
monochromatic
#0B1536 #152969 #1F3D9C #2951CF #5878DE

Accessibility & contrast

On white

9.52
#1F3D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F3D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D9C
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D9C#FFFFFF#000000##FFFFFF
##1F3D9C1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#005566
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3d9c;
/* rgb */ color: rgb(31, 61, 156);
/* oklch */ color: oklch(40.2% 0.159 265.9);
Tailwind
colors: {
  custom: {
    50: '#7072ba',
    500: '#1f3d9c',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d9c;
$custom-light: #7072ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d9c",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 156
  },
  "hsl": {
    "h": 225.6,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40155,
    "c": 0.15881,
    "h": 265.9
  },
  "luminance": 0.06029
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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