#1F175E#1F175E

#1F175E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.9% C 0.120 H 279.8°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#1F175E
RGBrgb(31, 23, 94)
HSLhsl(247, 61%, 23%)
HSVhsv(247, 76%, 37%)
CMYKcmyk(67%, 75.5%, 0%, 63.1%)
CIE-LABlab(13.90, 27.22, -40.94)
CIE-LCHlch(13.90, 49.16, 303.62°)
OKLaboklab(26.94% 0.0203 -0.1181)
OKLCHoklch(26.94% 0.12 279.8)
XYZxyz(2.8912, 1.7120, 10.7656)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F175E #565E17
analogous
#17325E #1F175E #43175E
triadic
#1F175E #5E1F17 #175E1F
tetradic
#1F175E #5E1732 #565E17 #175E43
square
#1F175E #5E1732 #565E17 #175E43
split-complementary
#1F175E #5E4317 #325E17
monochromatic
#080619 #0F0B2D #1F175E #2F238F #3F2FC0

Accessibility & contrast

On white

15.64
#1F175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1F175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F175E
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F175E#FFFFFF#000000##FFFFFF
##1F175E1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002A38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f175e;
/* rgb */ color: rgb(31, 23, 94);
/* oklch */ color: oklch(26.9% 0.120 279.8);
Tailwind
colors: {
  custom: {
    50: '#64558c',
    500: '#1f175e',
    950: '#000000',
  },
}
SCSS
$custom: #1f175e;
$custom-light: #64558c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f175e",
  "rgb": {
    "r": 31,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 246.761,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.26943,
    "c": 0.1198,
    "h": 279.8
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F175E

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

Preview Lab → · Contrast checker → · Palette generator →

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