#1F1168#1F1168

#1F1168 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.2% C 0.140 H 279.0°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#1F1168
RGBrgb(31, 17, 104)
HSLhsl(250, 72%, 24%)
HSVhsv(250, 84%, 41%)
CMYKcmyk(70.2%, 83.7%, 0%, 59.2%)
CIE-LABlab(13.78, 34.16, -47.77)
CIE-LCHlch(13.78, 58.73, 305.57°)
OKLaboklab(27.19% 0.0218 -0.1379)
OKLCHoklch(27.19% 0.14 279)
XYZxyz(3.2634, 1.6914, 13.2485)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1168 #5A6811
analogous
#112E68 #1F1168 #4A1168
triadic
#1F1168 #681F11 #11681F
tetradic
#1F1168 #68112E #5A6811 #11684A
square
#1F1168 #68112E #5A6811 #11684A
split-complementary
#1F1168 #684A11 #2E6811
monochromatic
#08041A #0F0833 #1F1168 #2F1A9D #3E22D1

Accessibility & contrast

On white

15.69
#1F1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1F1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1168
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1168#FFFFFF#000000##FFFFFF
##1F11681.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266A
Deuteranopia (green-blind)
#002066
Tritanopia (blue-blind)
#002B3D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f1168;
/* rgb */ color: rgb(31, 17, 104);
/* oklch */ color: oklch(27.2% 0.140 279.0);
Tailwind
colors: {
  custom: {
    50: '#675294',
    500: '#1f1168',
    950: '#000000',
  },
}
SCSS
$custom: #1f1168;
$custom-light: #675294;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1168",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 249.655,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27193,
    "c": 0.13966,
    "h": 279
  },
  "luminance": 0.01692
}

Semantic roles & 50–950 ramp

primary
#1F1168
secondary
#8FA035
accent
#EF39D1
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1168

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

Preview Lab → · Contrast checker → · Palette generator →

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