#1F1775#1F1775

#1F1775 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.151 H 275.7°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#1F1775
RGBrgb(31, 23, 117)
HSLhsl(245, 67%, 27%)
HSVhsv(245, 80%, 46%)
CMYKcmyk(73.5%, 80.3%, 0%, 54.1%)
CIE-LABlab(16.44, 35.24, -51.83)
CIE-LCHlch(16.44, 62.67, 304.21°)
OKLaboklab(29.51% 0.0149 -0.1498)
OKLCHoklch(29.51% 0.151 275.7)
XYZxyz(4.0813, 2.1881, 17.0334)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1775 #6D7517
analogous
#173E75 #1F1775 #4E1775
triadic
#1F1775 #751F17 #17751F
tetradic
#1F1775 #75173E #6D7517 #17754E
square
#1F1775 #75173E #6D7517 #17754E
split-complementary
#1F1775 #754E17 #3E7517
monochromatic
#07051A #110D42 #1F1775 #2D21A8 #3E30D6

Accessibility & contrast

On white

14.61
#1F1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1F1775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1775
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1775#FFFFFF#000000##FFFFFF
##1F17751.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002473
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f1775;
/* rgb */ color: rgb(31, 23, 117);
/* oklch */ color: oklch(29.5% 0.151 275.7);
Tailwind
colors: {
  custom: {
    50: '#6a569e',
    500: '#1f1775',
    950: '#000000',
  },
}
SCSS
$custom: #1f1775;
$custom-light: #6a569e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1775",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 245.106,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29509,
    "c": 0.15058,
    "h": 275.7
  },
  "luminance": 0.02188
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1775

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

Preview Lab → · Contrast checker → · Palette generator →

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