#1F1674#1F1674

#1F1674 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.150 H 276.0°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#1F1674
RGBrgb(31, 22, 116)
HSLhsl(246, 68%, 27%)
HSVhsv(246, 81%, 45%)
CMYKcmyk(73.3%, 81%, 0%, 54.5%)
CIE-LABlab(16.13, 35.46, -51.69)
CIE-LCHlch(16.13, 62.69, 304.45°)
OKLaboklab(29.26% 0.0157 -0.1494)
OKLCHoklch(29.26% 0.15 276)
XYZxyz(4.0033, 2.1257, 16.7189)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1674 #6B7416
analogous
#163C74 #1F1674 #4E1674
triadic
#1F1674 #741F16 #16741F
tetradic
#1F1674 #74163C #6B7416 #16744E
square
#1F1674 #74163C #6B7416 #16744E
split-complementary
#1F1674 #744E16 #3C7416
monochromatic
#07051A #110C41 #1F1674 #2D20A7 #3D2DD7

Accessibility & contrast

On white

14.73
#1F1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1674
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1674#FFFFFF#000000##FFFFFF
##1F16741.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1674;
/* rgb */ color: rgb(31, 22, 116);
/* oklch */ color: oklch(29.3% 0.150 276.0);
Tailwind
colors: {
  custom: {
    50: '#69569d',
    500: '#1f1674',
    950: '#000000',
  },
}
SCSS
$custom: #1f1674;
$custom-light: #69569d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1674",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 245.745,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29257,
    "c": 0.15026,
    "h": 276
  },
  "luminance": 0.02126
}

Semantic roles & 50–950 ramp

primary
#1F1674
secondary
#9FAA3C
accent
#EB3DDA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1674

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

Preview Lab → · Contrast checker → · Palette generator →

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