#1F175F#1F175F

#1F175F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.1% C 0.121 H 279.5°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#1F175F
RGBrgb(31, 23, 95)
HSLhsl(247, 61%, 23%)
HSVhsv(247, 76%, 37%)
CMYKcmyk(67.4%, 75.8%, 0%, 62.7%)
CIE-LABlab(14.00, 27.57, -41.43)
CIE-LCHlch(14.00, 49.77, 303.64°)
OKLaboklab(27.05% 0.0201 -0.1195)
OKLCHoklch(27.05% 0.121 279.5)
XYZxyz(2.9364, 1.7301, 11.0035)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F175F #575F17
analogous
#17335F #1F175F #43175F
triadic
#1F175F #5F1F17 #175F1F
tetradic
#1F175F #5F1733 #575F17 #175F43
square
#1F175F #5F1733 #575F17 #175F43
split-complementary
#1F175F #5F4317 #335F17
monochromatic
#080619 #0F0B2E #1F175F #2F2390 #3F2FC2

Accessibility & contrast

On white

15.60
#1F175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1F175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F175F
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F175F#FFFFFF#000000##FFFFFF
##1F175F1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f175f;
/* rgb */ color: rgb(31, 23, 95);
/* oklch */ color: oklch(27.1% 0.121 279.5);
Tailwind
colors: {
  custom: {
    50: '#64558d',
    500: '#1f175f',
    950: '#000000',
  },
}
SCSS
$custom: #1f175f;
$custom-light: #64558d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f175f",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 246.667,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2705,
    "c": 0.1212,
    "h": 279.5
  },
  "luminance": 0.0173
}

Semantic roles & 50–950 ramp

primary
#1F175F
secondary
#8C963C
accent
#E444D2
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #1F175F

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

Preview Lab → · Contrast checker → · Palette generator →

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