#1F1972#1F1972

#1F1972 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.145 H 275.8°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#1F1972
RGBrgb(31, 25, 114)
HSLhsl(244, 64%, 27%)
HSVhsv(244, 78%, 45%)
CMYKcmyk(72.8%, 78.1%, 0%, 55.3%)
CIE-LABlab(16.51, 33.05, -49.78)
CIE-LCHlch(16.51, 59.75, 303.58°)
OKLaboklab(29.45% 0.0146 -0.1439)
OKLCHoklch(29.45% 0.145 275.8)
XYZxyz(3.9490, 2.2011, 16.1331)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1972 #6C7219
analogous
#194072 #1F1972 #4C1972
triadic
#1F1972 #721F19 #19721F
tetradic
#1F1972 #721940 #6C7219 #19724C
square
#1F1972 #721940 #6C7219 #19724C
split-complementary
#1F1972 #724C19 #407219
monochromatic
#070619 #110E40 #1F1972 #2D24A4 #3E33D2

Accessibility & contrast

On white

14.58
#1F1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1972
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1972#FFFFFF#000000##FFFFFF
##1F19721.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1972;
/* rgb */ color: rgb(31, 25, 114);
/* oklch */ color: oklch(29.5% 0.145 275.8);
Tailwind
colors: {
  custom: {
    50: '#69579c',
    500: '#1f1972',
    950: '#000000',
  },
}
SCSS
$custom: #1f1972;
$custom-light: #69579c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1972",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 244.045,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29453,
    "c": 0.14465,
    "h": 275.8
  },
  "luminance": 0.02201
}

Semantic roles & 50–950 ramp

primary
#1F1972
secondary
#A0A740
accent
#E741DC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1972

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

Preview Lab → · Contrast checker → · Palette generator →

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