#1F106A#1F106A

#1F106A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.143 H 278.7°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#1F106A
RGBrgb(31, 16, 106)
HSLhsl(250, 74%, 24%)
HSVhsv(250, 85%, 42%)
CMYKcmyk(70.8%, 84.9%, 0%, 58.4%)
CIE-LABlab(13.84, 35.33, -48.98)
CIE-LCHlch(13.84, 60.39, 305.81°)
OKLaboklab(27.31% 0.0217 -0.1415)
OKLCHoklch(27.31% 0.143 278.7)
XYZxyz(3.3510, 1.7022, 13.7848)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F106A #5B6A10
analogous
#102E6A #1F106A #4C106A
triadic
#1F106A #6A1F10 #106A1F
tetradic
#1F106A #6A102E #5B6A10 #106A4C
square
#1F106A #6A102E #5B6A10 #106A4C
split-complementary
#1F106A #6A4C10 #2E6A10
monochromatic
#08041B #0F0835 #1F106A #2F189F #3E20D4

Accessibility & contrast

On white

15.67
#1F106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F106A
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F106A#FFFFFF#000000##FFFFFF
##1F106A1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002068
Tritanopia (blue-blind)
#002C3E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f106a;
/* rgb */ color: rgb(31, 16, 106);
/* oklch */ color: oklch(27.3% 0.143 278.7);
Tailwind
colors: {
  custom: {
    50: '#685196',
    500: '#1f106a',
    950: '#000000',
  },
}
SCSS
$custom: #1f106a;
$custom-light: #685196;
$custom-dark: #000000;
JSON
{
  "hex": "#1f106a",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 250,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27308,
    "c": 0.14311,
    "h": 278.7
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#1F106A
secondary
#90A234
accent
#F037D2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F106A

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

Preview Lab → · Contrast checker → · Palette generator →

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