#1F4585#1F4585

#1F4585 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.0% C 0.116 H 260.2°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#1F4585
RGBrgb(31, 69, 133)
HSLhsl(218, 62%, 32%)
HSVhsv(218, 77%, 52%)
CMYKcmyk(76.7%, 48.1%, 0%, 47.8%)
CIE-LABlab(30.01, 10.51, -39.83)
CIE-LCHlch(30.01, 41.19, 284.79°)
OKLaboklab(40% -0.0198 -0.1142)
OKLCHoklch(40% 0.116 260.2)
XYZxyz(6.9253, 6.2402, 23.0253)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4585 #855F1F
analogous
#1F7885 #1F4585 #2C1F85
triadic
#1F4585 #851F45 #45851F
tetradic
#1F4585 #851F78 #855F1F #1F852C
square
#1F4585 #851F78 #855F1F #1F852C
split-complementary
#1F4585 #852C1F #78851F
monochromatic
#081222 #132B53 #1F4585 #2B5FB7 #4A7DD5

Accessibility & contrast

On white

9.34
#1F4585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F4585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4585
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4585#FFFFFF#000000##FFFFFF
##1F45851.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234C87
Deuteranopia (green-blind)
#094284
Tritanopia (blue-blind)
#00545E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4585;
/* rgb */ color: rgb(31, 69, 133);
/* oklch */ color: oklch(40.0% 0.116 260.2);
Tailwind
colors: {
  custom: {
    50: '#6a78a9',
    500: '#1f4585',
    950: '#000000',
  },
}
SCSS
$custom: #1f4585;
$custom-light: #6a78a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4585",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 133
  },
  "hsl": {
    "h": 217.647,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39999,
    "c": 0.11594,
    "h": 260.2
  },
  "luminance": 0.06241
}

Semantic roles & 50–950 ramp

primary
#1F4585
secondary
#B78E49
accent
#A943E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4585

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

Preview Lab → · Contrast checker → · Palette generator →

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