#1F207A#1F207A

#1F207A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.148 H 273.4°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#1F207A
RGBrgb(31, 32, 122)
HSLhsl(239, 59%, 30%)
HSVhsv(239, 75%, 48%)
CMYKcmyk(74.6%, 73.8%, 0%, 52.2%)
CIE-LABlab(18.92, 31.59, -50.94)
CIE-LCHlch(18.92, 59.94, 301.80°)
OKLaboklab(31.43% 0.0089 -0.1473)
OKLCHoklch(31.43% 0.148 273.4)
XYZxyz(4.5933, 2.7290, 18.6933)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F207A #7A791F
analogous
#1F4D7A #1F207A #4C1F7A
triadic
#1F207A #7A1F20 #207A1F
tetradic
#1F207A #7A1F4D #7A791F #1F7A4C
square
#1F207A #7A1F4D #7A791F #1F7A4C
split-complementary
#1F207A #7A4C1F #4D7A1F
monochromatic
#060618 #131349 #1F207A #2B2DAB #4445CF

Accessibility & contrast

On white

13.59
#1F207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F207A
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F207A#FFFFFF#000000##FFFFFF
##1F207A1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f207a;
/* rgb */ color: rgb(31, 32, 122);
/* oklch */ color: oklch(31.4% 0.148 273.4);
Tailwind
colors: {
  custom: {
    50: '#6a5ca1',
    500: '#1f207a',
    950: '#000000',
  },
}
SCSS
$custom: #1f207a;
$custom-light: #6a5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f207a",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 239.341,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.31433,
    "c": 0.1476,
    "h": 273.4
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#1F207A
secondary
#ADAC47
accent
#E145E3
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1F207A

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

Preview Lab → · Contrast checker → · Palette generator →

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