#1F1074#1F1074

#1F1074 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.5% C 0.156 H 276.8°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#1F1074
RGBrgb(31, 16, 116)
HSLhsl(249, 76%, 26%)
HSVhsv(249, 86%, 45%)
CMYKcmyk(73.3%, 86.2%, 0%, 54.5%)
CIE-LABlab(15.08, 38.54, -53.45)
CIE-LCHlch(15.08, 65.89, 305.79°)
OKLaboklab(28.52% 0.0184 -0.1544)
OKLCHoklch(28.52% 0.156 276.8)
XYZxyz(3.9017, 1.9225, 16.6851)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1074 #657410
analogous
#103374 #1F1074 #511074
triadic
#1F1074 #741F10 #10741F
tetradic
#1F1074 #741033 #657410 #107451
square
#1F1074 #741033 #657410 #107451
split-complementary
#1F1074 #745110 #337410
monochromatic
#07041B #11093E #1F1074 #2D17AA #3C1FE0

Accessibility & contrast

On white

15.17
#1F1074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F1074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1074
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1074#FFFFFF#000000##FFFFFF
##1F10741.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1074;
/* rgb */ color: rgb(31, 16, 116);
/* oklch */ color: oklch(28.5% 0.156 276.8);
Tailwind
colors: {
  custom: {
    50: '#6a529d',
    500: '#1f1074',
    950: '#000000',
  },
}
SCSS
$custom: #1f1074;
$custom-light: #6a529d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1074",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 116
  },
  "hsl": {
    "h": 249,
    "s": 75.758,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28521,
    "c": 0.15554,
    "h": 276.8
  },
  "luminance": 0.01923
}

Semantic roles & 50–950 ramp

primary
#1F1074
secondary
#99AB35
accent
#F235D6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020E
muted
#7A787E

Preview Lab

Preview with #1F1074

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

Preview Lab → · Contrast checker → · Palette generator →

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