#1F207F#1F207F

#1F207F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.154 H 273.0°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#1F207F
RGBrgb(31, 32, 127)
HSLhsl(239, 61%, 31%)
HSVhsv(239, 76%, 50%)
CMYKcmyk(75.6%, 74.8%, 0%, 50.2%)
CIE-LABlab(19.46, 33.39, -53.25)
CIE-LCHlch(19.46, 62.85, 302.09°)
OKLaboklab(31.98% 0.008 -0.154)
OKLCHoklch(31.98% 0.154 273)
XYZxyz(4.9111, 2.8561, 20.3670)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F207F #7F7E1F
analogous
#1F507F #1F207F #4E1F7F
triadic
#1F207F #7F1F20 #207F1F
tetradic
#1F207F #7F1F50 #7F7E1F #1F7F4E
square
#1F207F #7F1F50 #7F7E1F #1F7F4E
split-complementary
#1F207F #7F4E1F #507F1F
monochromatic
#07071D #13144E #1F207F #2B2CB0 #4648D2

Accessibility & contrast

On white

13.36
#1F207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F207F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F207F#FFFFFF#000000##FFFFFF
##1F207F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f207f;
/* rgb */ color: rgb(31, 32, 127);
/* oklch */ color: oklch(32.0% 0.154 273.0);
Tailwind
colors: {
  custom: {
    50: '#6b5ca5',
    500: '#1f207f',
    950: '#000000',
  },
}
SCSS
$custom: #1f207f;
$custom-light: #6b5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f207f",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 239.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31976,
    "c": 0.15426,
    "h": 273
  },
  "luminance": 0.02857
}

Semantic roles & 50–950 ramp

primary
#1F207F
secondary
#B2B148
accent
#E244E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F207F

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

Preview Lab → · Contrast checker → · Palette generator →

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