#1F107D#1F107D

#1F107D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.166 H 275.3°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#1F107D
RGBrgb(31, 16, 125)
HSLhsl(248, 77%, 28%)
HSVhsv(248, 87%, 49%)
CMYKcmyk(75.2%, 87.2%, 0%, 51%)
CIE-LABlab(16.22, 41.36, -57.34)
CIE-LCHlch(16.22, 70.70, 305.80°)
OKLaboklab(29.64% 0.0155 -0.1657)
OKLCHoklch(29.64% 0.166 275.3)
XYZxyz(4.4508, 2.1421, 19.5770)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F107D #6E7D10
analogous
#10377D #1F107D #56107D
triadic
#1F107D #7D1F10 #107D1F
tetradic
#1F107D #7D1037 #6E7D10 #107D56
square
#1F107D #7D1037 #6E7D10 #107D56
split-complementary
#1F107D #7D5610 #377D10
monochromatic
#07031B #120947 #1F107D #2C17B3 #3F24E3

Accessibility & contrast

On white

14.70
#1F107D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F107D
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F107D#FFFFFF#000000##FFFFFF
##1F107D1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f107d;
/* rgb */ color: rgb(31, 16, 125);
/* oklch */ color: oklch(29.6% 0.166 275.3);
Tailwind
colors: {
  custom: {
    50: '#6c53a4',
    500: '#1f107d',
    950: '#000000',
  },
}
SCSS
$custom: #1f107d;
$custom-light: #6c53a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f107d",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 125
  },
  "hsl": {
    "h": 248.257,
    "s": 77.305,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29635,
    "c": 0.16644,
    "h": 275.3
  },
  "luminance": 0.02143
}

Semantic roles & 50–950 ramp

primary
#1F107D
secondary
#A2B335
accent
#F434D9
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F107D

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

Preview Lab → · Contrast checker → · Palette generator →

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