#1F1174#1F1174

#1F1174 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.155 H 276.7°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#1F1174
RGBrgb(31, 17, 116)
HSLhsl(248, 74%, 26%)
HSVhsv(248, 85%, 45%)
CMYKcmyk(73.3%, 85.3%, 0%, 54.5%)
CIE-LABlab(15.24, 38.06, -53.18)
CIE-LCHlch(15.24, 65.39, 305.59°)
OKLaboklab(28.63% 0.018 -0.1537)
OKLCHoklch(28.63% 0.155 276.7)
XYZxyz(3.9169, 1.9528, 16.6901)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1174 #667411
analogous
#113474 #1F1174 #501174
triadic
#1F1174 #741F11 #11741F
tetradic
#1F1174 #741134 #667411 #117450
square
#1F1174 #741134 #667411 #117450
split-complementary
#1F1174 #745011 #347411
monochromatic
#07041B #11093F #1F1174 #2D19A9 #3C21DE

Accessibility & contrast

On white

15.10
#1F1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1F1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1174
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1174#FFFFFF#000000##FFFFFF
##1F11741.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A77
Deuteranopia (green-blind)
#002272
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1f1174;
/* rgb */ color: rgb(31, 17, 116);
/* oklch */ color: oklch(28.6% 0.155 276.7);
Tailwind
colors: {
  custom: {
    50: '#6a539d',
    500: '#1f1174',
    950: '#000000',
  },
}
SCSS
$custom: #1f1174;
$custom-light: #6a539d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1174",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 248.485,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28633,
    "c": 0.15473,
    "h": 276.7
  },
  "luminance": 0.01953
}

Semantic roles & 50–950 ramp

primary
#1F1174
secondary
#9AAB36
accent
#F137D7
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F1174

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

Preview Lab → · Contrast checker → · Palette generator →

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