#1F1975#1F1975

#1F1975 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.149 H 275.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#1F1975
RGBrgb(31, 25, 117)
HSLhsl(244, 65%, 28%)
HSVhsv(244, 79%, 46%)
CMYKcmyk(73.5%, 78.6%, 0%, 54.1%)
CIE-LABlab(16.85, 34.09, -51.16)
CIE-LCHlch(16.85, 61.48, 303.68°)
OKLaboklab(29.79% 0.0139 -0.1479)
OKLCHoklch(29.79% 0.149 275.4)
XYZxyz(4.1225, 2.2705, 17.0472)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1975 #6F7519
analogous
#194175 #1F1975 #4D1975
triadic
#1F1975 #751F19 #19751F
tetradic
#1F1975 #751941 #6F7519 #19754D
square
#1F1975 #751941 #6F7519 #19754D
split-complementary
#1F1975 #754D19 #417519
monochromatic
#070519 #120E43 #1F1975 #2C24A7 #3F35D4

Accessibility & contrast

On white

14.44
#1F1975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F1975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1975
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1975#FFFFFF#000000##FFFFFF
##1F19751.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f1975;
/* rgb */ color: rgb(31, 25, 117);
/* oklch */ color: oklch(29.8% 0.149 275.4);
Tailwind
colors: {
  custom: {
    50: '#69579e',
    500: '#1f1975',
    950: '#000000',
  },
}
SCSS
$custom: #1f1975;
$custom-light: #69579e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1975",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 243.913,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29792,
    "c": 0.14857,
    "h": 275.4
  },
  "luminance": 0.02271
}

Semantic roles & 50–950 ramp

primary
#1F1975
secondary
#A3AA40
accent
#E840DD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1975

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

Preview Lab → · Contrast checker → · Palette generator →

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