#1F107F#1F107F

#1F107F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.169 H 275.1°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#1F107F
RGBrgb(31, 16, 127)
HSLhsl(248, 78%, 28%)
HSVhsv(248, 87%, 50%)
CMYKcmyk(75.6%, 87.4%, 0%, 50.2%)
CIE-LABlab(16.47, 41.98, -58.19)
CIE-LCHlch(16.47, 71.75, 305.81°)
OKLaboklab(29.89% 0.0149 -0.1682)
OKLCHoklch(29.89% 0.169 275.1)
XYZxyz(4.5799, 2.1937, 20.2566)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F107F #707F10
analogous
#10387F #1F107F #56107F
triadic
#1F107F #7F1F10 #107F1F
tetradic
#1F107F #7F1038 #707F10 #107F56
square
#1F107F #7F1038 #707F10 #107F56
split-complementary
#1F107F #7F5610 #387F10
monochromatic
#07031B #120949 #1F107F #2C17B5 #3F26E4

Accessibility & contrast

On white

14.60
#1F107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F107F
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F107F#FFFFFF#000000##FFFFFF
##1F107F1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f107f;
/* rgb */ color: rgb(31, 16, 127);
/* oklch */ color: oklch(29.9% 0.169 275.1);
Tailwind
colors: {
  custom: {
    50: '#6d53a5',
    500: '#1f107f',
    950: '#000000',
  },
}
SCSS
$custom: #1f107f;
$custom-light: #6d53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f107f",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 248.108,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29885,
    "c": 0.16884,
    "h": 275.1
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F107F

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

Preview Lab → · Contrast checker → · Palette generator →

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