#1F4075#1F4075

#1F4075 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.7% C 0.099 H 259.5°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#1F4075
RGBrgb(31, 64, 117)
HSLhsl(217, 58%, 29%)
HSVhsv(217, 74%, 46%)
CMYKcmyk(73.5%, 45.3%, 0%, 54.1%)
CIE-LABlab(27.41, 7.53, -33.98)
CIE-LCHlch(27.41, 34.80, 282.49°)
OKLaboklab(37.65% -0.018 -0.0971)
OKLCHoklch(37.65% 0.099 259.5)
XYZxyz(5.6082, 5.2419, 17.5424)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4075 #75541F
analogous
#1F6B75 #1F4075 #291F75
triadic
#1F4075 #751F40 #40751F
tetradic
#1F4075 #751F6B #75541F #1F7529
square
#1F4075 #751F6B #75541F #1F7529
split-complementary
#1F4075 #75291F #6B751F
monochromatic
#060D18 #122645 #1F4075 #2C5AA5 #4277CD

Accessibility & contrast

On white

10.25
#1F4075 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1F4075 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4075
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4075#FFFFFF#000000##FFFFFF
##1F40751.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264577
Deuteranopia (green-blind)
#173D74
Tritanopia (blue-blind)
#004C54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4075;
/* rgb */ color: rgb(31, 64, 117);
/* oklch */ color: oklch(37.7% 0.099 259.5);
Tailwind
colors: {
  custom: {
    50: '#66749d',
    500: '#1f4075',
    950: '#000000',
  },
}
SCSS
$custom: #1f4075;
$custom-light: #66749d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4075",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 117
  },
  "hsl": {
    "h": 216.977,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37653,
    "c": 0.0988,
    "h": 259.5
  },
  "luminance": 0.05242
}

Semantic roles & 50–950 ramp

primary
#1F4075
secondary
#A98347
accent
#A646E1
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1F4075

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

Preview Lab → · Contrast checker → · Palette generator →

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