#1F39B4#1F39B4

#1F39B4 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.195 H 267.1°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#1F39B4
RGBrgb(31, 57, 180)
HSLhsl(230, 71%, 41%)
HSVhsv(230, 83%, 71%)
CMYKcmyk(82.8%, 68.3%, 0%, 29.4%)
CIE-LABlab(30.67, 36.94, -67.27)
CIE-LCHlch(30.67, 76.75, 298.77°)
OKLaboklab(41.7% -0.0098 -0.1949)
OKLCHoklch(41.7% 0.195 267.1)
XYZxyz(10.2635, 6.5116, 43.8871)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F39B4 #B49A1F
analogous
#1F84B4 #1F39B4 #501FB4
triadic
#1F39B4 #B41F39 #39B41F
tetradic
#1F39B4 #B41F84 #B49A1F #1FB450
square
#1F39B4 #B41F84 #B49A1F #1FB450
split-complementary
#1F39B4 #B4501F #84B41F
monochromatic
#0D184C #162880 #1F39B4 #3451DC #687EE5

Accessibility & contrast

On white

9.12
#1F39B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F39B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F39B4
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F39B4#FFFFFF#000000##FFFFFF
##1F39B41.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0041B2
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f39b4;
/* rgb */ color: rgb(31, 57, 180);
/* oklch */ color: oklch(41.7% 0.195 267.1);
Tailwind
colors: {
  custom: {
    50: '#776fcc',
    500: '#1f39b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f39b4;
$custom-light: #776fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f39b4",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 229.53,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41699,
    "c": 0.19519,
    "h": 267.1
  },
  "luminance": 0.06513
}

Semantic roles & 50–950 ramp

primary
#1F39B4
secondary
#CBB964
accent
#CE3AED
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1F39B4

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

Preview Lab → · Contrast checker → · Palette generator →

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