#1F107E#1F107E

#1F107E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.168 H 275.2°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#1F107E
RGBrgb(31, 16, 126)
HSLhsl(248, 77%, 28%)
HSVhsv(248, 87%, 49%)
CMYKcmyk(75.4%, 87.3%, 0%, 50.6%)
CIE-LABlab(16.34, 41.67, -57.76)
CIE-LCHlch(16.34, 71.22, 305.81°)
OKLaboklab(29.76% 0.0152 -0.1669)
OKLCHoklch(29.76% 0.168 275.2)
XYZxyz(4.5150, 2.1678, 19.9151)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F107E #6F7E10
analogous
#10387E #1F107E #56107E
triadic
#1F107E #7E1F10 #107E1F
tetradic
#1F107E #7E1038 #6F7E10 #107E56
square
#1F107E #7E1038 #6F7E10 #107E56
split-complementary
#1F107E #7E5610 #387E10
monochromatic
#07031B #120948 #1F107E #2C17B4 #3F25E3

Accessibility & contrast

On white

14.65
#1F107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F107E
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F107E#FFFFFF#000000##FFFFFF
##1F107E1.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f107e;
/* rgb */ color: rgb(31, 16, 126);
/* oklch */ color: oklch(29.8% 0.168 275.2);
Tailwind
colors: {
  custom: {
    50: '#6d53a5',
    500: '#1f107e',
    950: '#000000',
  },
}
SCSS
$custom: #1f107e;
$custom-light: #6d53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f107e",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 248.182,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.2976,
    "c": 0.16764,
    "h": 275.2
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#1F107E
secondary
#A3B436
accent
#F434DA
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F107E

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

Preview Lab → · Contrast checker → · Palette generator →

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