#1F1970#1F1970

#1F1970 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.142 H 276.1°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#1F1970
RGBrgb(31, 25, 112)
HSLhsl(244, 64%, 27%)
HSVhsv(244, 78%, 44%)
CMYKcmyk(72.3%, 77.7%, 0%, 56.1%)
CIE-LABlab(16.29, 32.35, -48.85)
CIE-LCHlch(16.29, 58.59, 303.51°)
OKLaboklab(29.23% 0.015 -0.1412)
OKLCHoklch(29.23% 0.142 276.1)
XYZxyz(3.8364, 2.1561, 15.5401)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1970 #6A7019
analogous
#193F70 #1F1970 #4B1970
triadic
#1F1970 #701F19 #19701F
tetradic
#1F1970 #70193F #6A7019 #19704B
square
#1F1970 #70193F #6A7019 #19704B
split-complementary
#1F1970 #704B19 #3F7019
monochromatic
#070619 #110E3E #1F1970 #2D24A2 #3D32D1

Accessibility & contrast

On white

14.67
#1F1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1970
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1970#FFFFFF#000000##FFFFFF
##1F19701.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1970;
/* rgb */ color: rgb(31, 25, 112);
/* oklch */ color: oklch(29.2% 0.142 276.1);
Tailwind
colors: {
  custom: {
    50: '#68579a',
    500: '#1f1970',
    950: '#000000',
  },
}
SCSS
$custom: #1f1970;
$custom-light: #68579a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1970",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 244.138,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29228,
    "c": 0.142,
    "h": 276.1
  },
  "luminance": 0.02156
}

Semantic roles & 50–950 ramp

primary
#1F1970
secondary
#9EA540
accent
#E741DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1970

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

Preview Lab → · Contrast checker → · Palette generator →

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