#1F3E9F#1F3E9F

#1F3E9F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.162 H 265.8°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#1F3E9F
RGBrgb(31, 62, 159)
HSLhsl(225, 67%, 37%)
HSVhsv(225, 81%, 62%)
CMYKcmyk(80.5%, 61%, 0%, 37.6%)
CIE-LABlab(30.01, 25.67, -55.76)
CIE-LCHlch(30.01, 61.38, 294.72°)
OKLaboklab(40.63% -0.0119 -0.1612)
OKLCHoklch(40.63% 0.162 265.8)
XYZxyz(8.5435, 6.2388, 33.5481)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E9F #9F801F
analogous
#1F7E9F #1F3E9F #401F9F
triadic
#1F3E9F #9F1F3E #3E9F1F
tetradic
#1F3E9F #9F1F7E #9F801F #1F9F40
square
#1F3E9F #9F1F7E #9F801F #1F9F40
split-complementary
#1F3E9F #9F401F #7E9F1F
monochromatic
#0B1639 #152A6C #1F3E9F #2952D2 #5A7ADF

Accessibility & contrast

On white

9.34
#1F3E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F3E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E9F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E9F#FFFFFF#000000##FFFFFF
##1F3E9F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f3e9f;
/* rgb */ color: rgb(31, 62, 159);
/* oklch */ color: oklch(40.6% 0.162 265.8);
Tailwind
colors: {
  custom: {
    50: '#7172bc',
    500: '#1f3e9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e9f;
$custom-light: #7172bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e9f",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 159
  },
  "hsl": {
    "h": 225.469,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40625,
    "c": 0.16165,
    "h": 265.8
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#1F3E9F
secondary
#C3A957
accent
#C03EEA
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #1F3E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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