#1F39A6#1F39A6

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

Color values

HEX#1F39A6
RGBrgb(31, 57, 166)
HSLhsl(228, 69%, 39%)
HSVhsv(228, 81%, 65%)
CMYKcmyk(81.3%, 65.7%, 0%, 34.9%)
CIE-LABlab(29.34, 31.71, -61.09)
CIE-LCHlch(29.34, 68.83, 297.43°)
OKLaboklab(40.32% -0.0091 -0.1769)
OKLCHoklch(40.32% 0.177 267.1)
XYZxyz(8.9087, 5.9697, 36.7517)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F39A6 #A68C1F
analogous
#1F7CA6 #1F39A6 #481FA6
triadic
#1F39A6 #A61F39 #39A61F
tetradic
#1F39A6 #A61F7C #A68C1F #1FA648
square
#1F39A6 #A61F7C #A68C1F #1FA648
split-complementary
#1F39A6 #A6481F #7CA61F
monochromatic
#0C163F #152772 #1F39A6 #2B4CD7 #5E78E1

Accessibility & contrast

On white

9.57
#1F39A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F39A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F39A6
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F39A6#FFFFFF#000000##FFFFFF
##1F39A61.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f39a6;
/* rgb */ color: rgb(31, 57, 166);
/* oklch */ color: oklch(40.3% 0.177 267.1);
Tailwind
colors: {
  custom: {
    50: '#736fc1',
    500: '#1f39a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f39a6;
$custom-light: #736fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f39a6",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 166
  },
  "hsl": {
    "h": 228.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4032,
    "c": 0.1771,
    "h": 267.1
  },
  "luminance": 0.05971
}

Semantic roles & 50–950 ramp

primary
#1F39A6
secondary
#C5B15B
accent
#CA3CEB
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #1F39A6

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

Preview Lab → · Contrast checker → · Palette generator →

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