#1F108D#1F108D

#1F108D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.185 H 273.2°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#1F108D
RGBrgb(31, 16, 141)
HSLhsl(247, 80%, 31%)
HSVhsv(247, 89%, 55%)
CMYKcmyk(78%, 88.7%, 0%, 44.7%)
CIE-LABlab(18.30, 46.23, -63.99)
CIE-LCHlch(18.30, 78.94, 305.85°)
OKLaboklab(31.65% 0.0105 -0.185)
OKLCHoklch(31.65% 0.185 273.2)
XYZxyz(5.5565, 2.5844, 25.4001)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F108D #7E8D10
analogous
#103F8D #1F108D #5D108D
triadic
#1F108D #8D1F10 #108D1F
tetradic
#1F108D #8D103F #7E8D10 #108D5D
square
#1F108D #8D103F #7E8D10 #108D5D
split-complementary
#1F108D #8D5D10 #3F8D10
monochromatic
#07041F #130A56 #1F108D #2B16C4 #4630E7

Accessibility & contrast

On white

13.84
#1F108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F108D
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F108D#FFFFFF#000000##FFFFFF
##1F108D1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003290
Deuteranopia (green-blind)
#00278B
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f108d;
/* rgb */ color: rgb(31, 16, 141);
/* oklch */ color: oklch(31.7% 0.185 273.2);
Tailwind
colors: {
  custom: {
    50: '#7055b0',
    500: '#1f108d',
    950: '#000000',
  },
}
SCSS
$custom: #1f108d;
$custom-light: #7055b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f108d",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 247.2,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31652,
    "c": 0.18528,
    "h": 273.2
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#1F108D
secondary
#B1C237
accent
#F632DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1F108D

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

Preview Lab → · Contrast checker → · Palette generator →

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