#1F106D#1F106D

#1F106D is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.147 H 278.1°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#1F106D
RGBrgb(31, 16, 109)
HSLhsl(250, 74%, 25%)
HSVhsv(250, 85%, 43%)
CMYKcmyk(71.6%, 85.3%, 0%, 57.3%)
CIE-LABlab(14.21, 36.30, -50.34)
CIE-LCHlch(14.21, 62.06, 305.80°)
OKLaboklab(27.67% 0.0207 -0.1454)
OKLCHoklch(27.67% 0.147 278.1)
XYZxyz(3.5098, 1.7657, 14.6209)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F106D #5E6D10
analogous
#10306D #1F106D #4D106D
triadic
#1F106D #6D1F10 #106D1F
tetradic
#1F106D #6D1030 #5E6D10 #106D4D
square
#1F106D #6D1030 #5E6D10 #106D4D
split-complementary
#1F106D #6D4D10 #306D10
monochromatic
#08041B #100838 #1F106D #2E18A2 #3D20D8

Accessibility & contrast

On white

15.52
#1F106D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1F106D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F106D
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F106D#FFFFFF#000000##FFFFFF
##1F106D1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002870
Deuteranopia (green-blind)
#00206B
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f106d;
/* rgb */ color: rgb(31, 16, 109);
/* oklch */ color: oklch(27.7% 0.147 278.1);
Tailwind
colors: {
  custom: {
    50: '#685298',
    500: '#1f106d',
    950: '#000000',
  },
}
SCSS
$custom: #1f106d;
$custom-light: #685298;
$custom-dark: #000000;
JSON
{
  "hex": "#1f106d",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 109
  },
  "hsl": {
    "h": 249.677,
    "s": 74.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27669,
    "c": 0.14687,
    "h": 278.1
  },
  "luminance": 0.01766
}

Semantic roles & 50–950 ramp

primary
#1F106D
secondary
#93A534
accent
#F137D3
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F106D

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

Preview Lab → · Contrast checker → · Palette generator →

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