#1F106C#1F106C

#1F106C is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.5% C 0.146 H 278.3°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#1F106C
RGBrgb(31, 16, 108)
HSLhsl(250, 74%, 24%)
HSVhsv(250, 85%, 42%)
CMYKcmyk(71.3%, 85.2%, 0%, 57.6%)
CIE-LABlab(14.08, 35.98, -49.89)
CIE-LCHlch(14.08, 61.51, 305.80°)
OKLaboklab(27.55% 0.0211 -0.1441)
OKLCHoklch(27.55% 0.146 278.3)
XYZxyz(3.4563, 1.7443, 14.3390)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F106C #5D6C10
analogous
#102F6C #1F106C #4D106C
triadic
#1F106C #6C1F10 #106C1F
tetradic
#1F106C #6C102F #5D6C10 #106C4D
square
#1F106C #6C102F #5D6C10 #106C4D
split-complementary
#1F106C #6C4D10 #2F6C10
monochromatic
#08041B #100837 #1F106C #2E18A1 #3E20D7

Accessibility & contrast

On white

15.57
#1F106C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F106C
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F106C#FFFFFF#000000##FFFFFF
##1F106C1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276F
Deuteranopia (green-blind)
#00206A
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f106c;
/* rgb */ color: rgb(31, 16, 108);
/* oklch */ color: oklch(27.5% 0.146 278.3);
Tailwind
colors: {
  custom: {
    50: '#685297',
    500: '#1f106c',
    950: '#000000',
  },
}
SCSS
$custom: #1f106c;
$custom-light: #685297;
$custom-dark: #000000;
JSON
{
  "hex": "#1f106c",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 108
  },
  "hsl": {
    "h": 249.783,
    "s": 74.194,
    "l": 24.314
  },
  "oklch": {
    "l": 0.27548,
    "c": 0.14562,
    "h": 278.3
  },
  "luminance": 0.01745
}

Semantic roles & 50–950 ramp

primary
#1F106C
secondary
#92A434
accent
#F137D3
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F106C

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

Preview Lab → · Contrast checker → · Palette generator →

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