#1F3E9C#1F3E9C

#1F3E9C is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.158 H 265.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#1F3E9C
RGBrgb(31, 62, 156)
HSLhsl(225, 67%, 37%)
HSVhsv(225, 80%, 61%)
CMYKcmyk(80.1%, 60.3%, 0%, 38.8%)
CIE-LABlab(29.75, 24.50, -54.36)
CIE-LCHlch(29.75, 59.62, 294.26°)
OKLaboklab(40.36% -0.012 -0.1571)
OKLCHoklch(40.36% 0.158 265.6)
XYZxyz(8.2863, 6.1359, 32.1937)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E9C #9C7D1F
analogous
#1F7D9C #1F3E9C #3F1F9C
triadic
#1F3E9C #9C1F3E #3E9C1F
tetradic
#1F3E9C #9C1F7D #9C7D1F #1F9C3F
square
#1F3E9C #9C1F7D #9C7D1F #1F9C3F
split-complementary
#1F3E9C #9C3F1F #7D9C1F
monochromatic
#0B1536 #152A69 #1F3E9C #2952CF #5879DE

Accessibility & contrast

On white

9.43
#1F3E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F3E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E9C
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E9C#FFFFFF#000000##FFFFFF
##1F3E9C1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3e9c;
/* rgb */ color: rgb(31, 62, 156);
/* oklch */ color: oklch(40.4% 0.158 265.6);
Tailwind
colors: {
  custom: {
    50: '#7072ba',
    500: '#1f3e9c',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e9c;
$custom-light: #7072ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e9c",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 156
  },
  "hsl": {
    "h": 225.12,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40356,
    "c": 0.15755,
    "h": 265.6
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#1F3E9C
secondary
#C1A755
accent
#BF3EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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