#1F3C9B#1F3C9B

#1F3C9B is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.159 H 266.1°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#1F3C9B
RGBrgb(31, 60, 155)
HSLhsl(226, 67%, 36%)
HSVhsv(226, 80%, 61%)
CMYKcmyk(80%, 61.3%, 0%, 39.2%)
CIE-LABlab(29.13, 25.46, -54.76)
CIE-LCHlch(29.13, 60.40, 294.94°)
OKLaboklab(39.87% -0.0107 -0.1583)
OKLCHoklch(39.87% 0.159 266.1)
XYZxyz(8.0952, 5.8886, 31.7140)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C9B #9B7E1F
analogous
#1F7A9B #1F3C9B #401F9B
triadic
#1F3C9B #9B1F3C #3C9B1F
tetradic
#1F3C9B #9B1F7A #9B7E1F #1F9B40
square
#1F3C9B #9B1F7A #9B7E1F #1F9B40
split-complementary
#1F3C9B #9B401F #7A9B1F
monochromatic
#0B1535 #152868 #1F3C9B #2950CE #5776DD

Accessibility & contrast

On white

9.64
#1F3C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1F3C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3C9B
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C9B#FFFFFF#000000##FFFFFF
##1F3C9B1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3c9b;
/* rgb */ color: rgb(31, 60, 155);
/* oklch */ color: oklch(39.9% 0.159 266.1);
Tailwind
colors: {
  custom: {
    50: '#7071b9',
    500: '#1f3c9b',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c9b;
$custom-light: #7071b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c9b",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 155
  },
  "hsl": {
    "h": 225.968,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39865,
    "c": 0.15868,
    "h": 266.1
  },
  "luminance": 0.0589
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F3C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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