#1F1774#1F1774

#1F1774 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.149 H 275.8°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#1F1774
RGBrgb(31, 23, 116)
HSLhsl(245, 67%, 27%)
HSVhsv(245, 80%, 45%)
CMYKcmyk(73.3%, 80.2%, 0%, 54.5%)
CIE-LABlab(16.33, 34.90, -51.37)
CIE-LCHlch(16.33, 62.10, 304.19°)
OKLaboklab(29.39% 0.0152 -0.1485)
OKLCHoklch(29.39% 0.149 275.8)
XYZxyz(4.0228, 2.1647, 16.7254)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1774 #6C7417
analogous
#173E74 #1F1774 #4D1774
triadic
#1F1774 #741F17 #17741F
tetradic
#1F1774 #74173E #6C7417 #17744D
square
#1F1774 #74173E #6C7417 #17744D
split-complementary
#1F1774 #744D17 #3E7417
monochromatic
#07051A #110D41 #1F1774 #2D21A7 #3E30D6

Accessibility & contrast

On white

14.65
#1F1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1774
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1774#FFFFFF#000000##FFFFFF
##1F17741.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1774;
/* rgb */ color: rgb(31, 23, 116);
/* oklch */ color: oklch(29.4% 0.149 275.8);
Tailwind
colors: {
  custom: {
    50: '#69569d',
    500: '#1f1774',
    950: '#000000',
  },
}
SCSS
$custom: #1f1774;
$custom-light: #69569d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1774",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 245.161,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29393,
    "c": 0.1493,
    "h": 275.8
  },
  "luminance": 0.02165
}

Semantic roles & 50–950 ramp

primary
#1F1774
secondary
#A0A93D
accent
#EA3EDB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1774

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

Preview Lab → · Contrast checker → · Palette generator →

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