#1F117D#1F117D

#1F117D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.166 H 275.3°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#1F117D
RGBrgb(31, 17, 125)
HSLhsl(248, 76%, 28%)
HSVhsv(248, 86%, 49%)
CMYKcmyk(75.2%, 86.4%, 0%, 51%)
CIE-LABlab(16.37, 40.91, -57.09)
CIE-LCHlch(16.37, 70.23, 305.63°)
OKLaboklab(29.74% 0.0152 -0.165)
OKLCHoklch(29.74% 0.166 275.3)
XYZxyz(4.4660, 2.1724, 19.5820)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F117D #6F7D11
analogous
#11397D #1F117D #55117D
triadic
#1F117D #7D1F11 #117D1F
tetradic
#1F117D #7D1139 #6F7D11 #117D55
square
#1F117D #7D1139 #6F7D11 #117D55
split-complementary
#1F117D #7D5511 #397D11
monochromatic
#07041B #120A47 #1F117D #2C18B3 #3F27E2

Accessibility & contrast

On white

14.64
#1F117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F117D
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F117D#FFFFFF#000000##FFFFFF
##1F117D1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f117d;
/* rgb */ color: rgb(31, 17, 125);
/* oklch */ color: oklch(29.7% 0.166 275.3);
Tailwind
colors: {
  custom: {
    50: '#6c54a4',
    500: '#1f117d',
    950: '#000000',
  },
}
SCSS
$custom: #1f117d;
$custom-light: #6c54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f117d",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 247.778,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29739,
    "c": 0.16571,
    "h": 275.3
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#1F117D
secondary
#A3B337
accent
#F335DA
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F117D

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

Preview Lab → · Contrast checker → · Palette generator →

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