#1F2685#1F2685

#1F2685 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.155 H 271.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#1F2685
RGBrgb(31, 38, 133)
HSLhsl(236, 62%, 32%)
HSVhsv(236, 77%, 52%)
CMYKcmyk(76.7%, 71.4%, 0%, 47.8%)
CIE-LABlab(21.47, 31.77, -53.72)
CIE-LCHlch(21.47, 62.41, 300.60°)
OKLaboklab(33.61% 0.0038 -0.1554)
OKLCHoklch(33.61% 0.155 271.4)
XYZxyz(5.4904, 3.3704, 22.5470)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2685 #857E1F
analogous
#1F5985 #1F2685 #4B1F85
triadic
#1F2685 #851F26 #26851F
tetradic
#1F2685 #851F59 #857E1F #1F854B
square
#1F2685 #851F59 #857E1F #1F854B
split-complementary
#1F2685 #854B1F #59851F
monochromatic
#080A22 #131853 #1F2685 #2B34B7 #4A53D5

Accessibility & contrast

On white

12.54
#1F2685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2685
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2685#FFFFFF#000000##FFFFFF
##1F26851.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2685;
/* rgb */ color: rgb(31, 38, 133);
/* oklch */ color: oklch(33.6% 0.155 271.4);
Tailwind
colors: {
  custom: {
    50: '#6c61a9',
    500: '#1f2685',
    950: '#000000',
  },
}
SCSS
$custom: #1f2685;
$custom-light: #6c61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2685",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 133
  },
  "hsl": {
    "h": 235.882,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3361,
    "c": 0.15549,
    "h": 271.4
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#1F2685
secondary
#B7B049
accent
#DA43E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2685

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

Preview Lab → · Contrast checker → · Palette generator →

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