#1F175A#1F175A

#1F175A is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.5% C 0.114 H 280.6°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#1F175A
RGBrgb(31, 23, 90)
HSLhsl(247, 59%, 22%)
HSVhsv(247, 74%, 35%)
CMYKcmyk(65.6%, 74.4%, 0%, 64.7%)
CIE-LABlab(13.48, 25.78, -38.93)
CIE-LCHlch(13.48, 46.69, 303.51°)
OKLaboklab(26.52% 0.0211 -0.1122)
OKLCHoklch(26.52% 0.114 280.6)
XYZxyz(2.7164, 1.6421, 9.8447)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F175A #525A17
analogous
#17315A #1F175A #41175A
triadic
#1F175A #5A1F17 #175A1F
tetradic
#1F175A #5A1731 #525A17 #175A41
square
#1F175A #5A1731 #525A17 #175A41
split-complementary
#1F175A #5A4117 #315A17
monochromatic
#080618 #0E0B29 #1F175A #30238B #4130BB

Accessibility & contrast

On white

15.81
#1F175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1F175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F175A
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F175A#FFFFFF#000000##FFFFFF
##1F175A1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#002936
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f175a;
/* rgb */ color: rgb(31, 23, 90);
/* oklch */ color: oklch(26.5% 0.114 280.6);
Tailwind
colors: {
  custom: {
    50: '#635589',
    500: '#1f175a',
    950: '#000000',
  },
}
SCSS
$custom: #1f175a;
$custom-light: #635589;
$custom-dark: #000000;
JSON
{
  "hex": "#1f175a",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 247.164,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26521,
    "c": 0.11416,
    "h": 280.6
  },
  "luminance": 0.01642
}

Semantic roles & 50–950 ramp

primary
#1F175A
secondary
#87913C
accent
#E245D0
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1F175A

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

Preview Lab → · Contrast checker → · Palette generator →

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