#1F3685#1F3685

#1F3685 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.136 H 267.0°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#1F3685
RGBrgb(31, 54, 133)
HSLhsl(226, 62%, 32%)
HSVhsv(226, 77%, 52%)
CMYKcmyk(76.7%, 59.4%, 0%, 47.8%)
CIE-LABlab(25.63, 20.92, -46.91)
CIE-LCHlch(25.63, 51.37, 294.04°)
OKLaboklab(36.67% -0.007 -0.1354)
OKLCHoklch(36.67% 0.136 267)
XYZxyz(6.1164, 4.6224, 22.7556)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3685 #856E1F
analogous
#1F6985 #1F3685 #3B1F85
triadic
#1F3685 #851F36 #36851F
tetradic
#1F3685 #851F69 #856E1F #1F853B
square
#1F3685 #851F69 #856E1F #1F853B
split-complementary
#1F3685 #853B1F #69851F
monochromatic
#080E22 #132253 #1F3685 #2B4AB7 #4A69D5

Accessibility & contrast

On white

10.91
#1F3685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F3685 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3685
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3685#FFFFFF#000000##FFFFFF
##1F36851.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004288
Deuteranopia (green-blind)
#003883
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3685;
/* rgb */ color: rgb(31, 54, 133);
/* oklch */ color: oklch(36.7% 0.136 267.0);
Tailwind
colors: {
  custom: {
    50: '#6b6ca9',
    500: '#1f3685',
    950: '#000000',
  },
}
SCSS
$custom: #1f3685;
$custom-light: #6b6ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3685",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 133
  },
  "hsl": {
    "h": 226.471,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36672,
    "c": 0.13554,
    "h": 267
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#1F3685
secondary
#B79E49
accent
#C143E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3685

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

Preview Lab → · Contrast checker → · Palette generator →

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