#1F117F#1F117F

#1F117F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.168 H 275.0°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#1F117F
RGBrgb(31, 17, 127)
HSLhsl(248, 76%, 28%)
HSVhsv(248, 87%, 50%)
CMYKcmyk(75.6%, 86.6%, 0%, 50.2%)
CIE-LABlab(16.62, 41.53, -57.94)
CIE-LCHlch(16.62, 71.29, 305.64°)
OKLaboklab(29.99% 0.0146 -0.1675)
OKLCHoklch(29.99% 0.168 275)
XYZxyz(4.5950, 2.2241, 20.2617)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F117F #717F11
analogous
#113A7F #1F117F #56117F
triadic
#1F117F #7F1F11 #117F1F
tetradic
#1F117F #7F113A #717F11 #117F56
square
#1F117F #7F113A #717F11 #117F56
split-complementary
#1F117F #7F5611 #3A7F11
monochromatic
#07041B #120A49 #1F117F #2C18B5 #4028E2

Accessibility & contrast

On white

14.53
#1F117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F117F
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F117F#FFFFFF#000000##FFFFFF
##1F117F1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f117f;
/* rgb */ color: rgb(31, 17, 127);
/* oklch */ color: oklch(30.0% 0.168 275.0);
Tailwind
colors: {
  custom: {
    50: '#6d54a5',
    500: '#1f117f',
    950: '#000000',
  },
}
SCSS
$custom: #1f117f;
$custom-light: #6d54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f117f",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 247.636,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29987,
    "c": 0.16811,
    "h": 275
  },
  "luminance": 0.02225
}

Semantic roles & 50–950 ramp

primary
#1F117F
secondary
#A5B537
accent
#F335DB
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F117F

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

Preview Lab → · Contrast checker → · Palette generator →

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