#1F2970#1F2970

#1F2970 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.122 H 271.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#1F2970
RGBrgb(31, 41, 112)
HSLhsl(233, 57%, 28%)
HSVhsv(233, 72%, 44%)
CMYKcmyk(72.3%, 63.4%, 0%, 56.1%)
CIE-LABlab(20.23, 21.75, -42.39)
CIE-LCHlch(20.23, 47.64, 297.16°)
OKLaboklab(32.09% 0.0032 -0.1222)
OKLCHoklch(32.09% 0.122 271.5)
XYZxyz(4.2817, 3.0466, 15.6885)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2970 #70661F
analogous
#1F5170 #1F2970 #3E1F70
triadic
#1F2970 #701F29 #29701F
tetradic
#1F2970 #701F51 #70661F #1F703E
square
#1F2970 #701F51 #70661F #1F703E
split-complementary
#1F2970 #703E1F #51701F
monochromatic
#070918 #121740 #1F2970 #2C3BA0 #3F51CA

Accessibility & contrast

On white

13.05
#1F2970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F2970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2970
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2970#FFFFFF#000000##FFFFFF
##1F29701.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2970;
/* rgb */ color: rgb(31, 41, 112);
/* oklch */ color: oklch(32.1% 0.122 271.5);
Tailwind
colors: {
  custom: {
    50: '#67629a',
    500: '#1f2970',
    950: '#000000',
  },
}
SCSS
$custom: #1f2970;
$custom-light: #67629a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2970",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 112
  },
  "hsl": {
    "h": 232.593,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32088,
    "c": 0.12228,
    "h": 271.5
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#1F2970
secondary
#A49847
accent
#CD48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2970

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

Preview Lab → · Contrast checker → · Palette generator →

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