#1F39A7#1F39A7

#1F39A7 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.178 H 267.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#1F39A7
RGBrgb(31, 57, 167)
HSLhsl(229, 69%, 39%)
HSVhsv(229, 81%, 65%)
CMYKcmyk(81.4%, 65.9%, 0%, 34.5%)
CIE-LABlab(29.43, 32.09, -61.54)
CIE-LCHlch(29.43, 69.40, 297.54°)
OKLaboklab(40.42% -0.0091 -0.1782)
OKLCHoklch(40.42% 0.178 267.1)
XYZxyz(9.0008, 6.0065, 37.2367)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F39A7 #A78D1F
analogous
#1F7DA7 #1F39A7 #491FA7
triadic
#1F39A7 #A71F39 #39A71F
tetradic
#1F39A7 #A71F7D #A78D1F #1FA749
square
#1F39A7 #A71F7D #A78D1F #1FA749
split-complementary
#1F39A7 #A7491F #7DA71F
monochromatic
#0C1640 #152773 #1F39A7 #2B4CD8 #5F78E1

Accessibility & contrast

On white

9.54
#1F39A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1F39A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F39A7
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F39A7#FFFFFF#000000##FFFFFF
##1F39A71.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#003FA5
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f39a7;
/* rgb */ color: rgb(31, 57, 167);
/* oklch */ color: oklch(40.4% 0.178 267.1);
Tailwind
colors: {
  custom: {
    50: '#736fc2',
    500: '#1f39a7',
    950: '#000000',
  },
}
SCSS
$custom: #1f39a7;
$custom-light: #736fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f39a7",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 167
  },
  "hsl": {
    "h": 228.529,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40417,
    "c": 0.17842,
    "h": 267.1
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#1F39A7
secondary
#C6B25C
accent
#CA3CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #1F39A7

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

Preview Lab → · Contrast checker → · Palette generator →

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