#1F3E9B#1F3E9B

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

Color values

HEX#1F3E9B
RGBrgb(31, 62, 155)
HSLhsl(225, 67%, 36%)
HSVhsv(225, 80%, 61%)
CMYKcmyk(80%, 60%, 0%, 39.2%)
CIE-LABlab(29.67, 24.10, -53.88)
CIE-LCHlch(29.67, 59.03, 294.10°)
OKLaboklab(40.27% -0.012 -0.1557)
OKLCHoklch(40.27% 0.156 265.6)
XYZxyz(8.2020, 6.1022, 31.7495)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E9B #9B7C1F
analogous
#1F7C9B #1F3E9B #3E1F9B
triadic
#1F3E9B #9B1F3E #3E9B1F
tetradic
#1F3E9B #9B1F7C #9B7C1F #1F9B3E
square
#1F3E9B #9B1F7C #9B7C1F #1F9B3E
split-complementary
#1F3E9B #9B3E1F #7C9B1F
monochromatic
#0B1535 #152A68 #1F3E9B #2952CE #5779DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F3E9B#FFFFFF#000000##FFFFFF
##1F3E9B1.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)
#004C9E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3e9b;
/* rgb */ color: rgb(31, 62, 155);
/* oklch */ color: oklch(40.3% 0.156 265.6);
Tailwind
colors: {
  custom: {
    50: '#7072b9',
    500: '#1f3e9b',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e9b;
$custom-light: #7072b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e9b",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 155
  },
  "hsl": {
    "h": 225,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40267,
    "c": 0.15617,
    "h": 265.6
  },
  "luminance": 0.06103
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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