#1F1875#1F1875

#1F1875 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.150 H 275.5°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#1F1875
RGBrgb(31, 24, 117)
HSLhsl(245, 66%, 28%)
HSVhsv(245, 79%, 46%)
CMYKcmyk(73.5%, 79.5%, 0%, 54.1%)
CIE-LABlab(16.64, 34.67, -51.50)
CIE-LCHlch(16.64, 62.08, 303.95°)
OKLaboklab(29.65% 0.0144 -0.1489)
OKLCHoklch(29.65% 0.15 275.5)
XYZxyz(4.1015, 2.2285, 17.0402)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1875 #6E7518
analogous
#184075 #1F1875 #4D1875
triadic
#1F1875 #751F18 #18751F
tetradic
#1F1875 #751840 #6E7518 #18754D
square
#1F1875 #751840 #6E7518 #18754D
split-complementary
#1F1875 #754D18 #407518
monochromatic
#070519 #120E42 #1F1875 #2C22A8 #3F32D5

Accessibility & contrast

On white

14.52
#1F1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1875
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1875#FFFFFF#000000##FFFFFF
##1F18751.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1875;
/* rgb */ color: rgb(31, 24, 117);
/* oklch */ color: oklch(29.6% 0.150 275.5);
Tailwind
colors: {
  custom: {
    50: '#6a579e',
    500: '#1f1875',
    950: '#000000',
  },
}
SCSS
$custom: #1f1875;
$custom-light: #6a579e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1875",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 244.516,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29649,
    "c": 0.14959,
    "h": 275.5
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#1F1875
secondary
#A2AA3F
accent
#E93FDC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1875

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

Preview Lab → · Contrast checker → · Palette generator →

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