#1F4074#1F4074

#1F4074 is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.6% C 0.097 H 259.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#1F4074
RGBrgb(31, 64, 116)
HSLhsl(217, 58%, 29%)
HSVhsv(217, 73%, 45%)
CMYKcmyk(73.3%, 44.8%, 0%, 54.5%)
CIE-LABlab(27.35, 7.13, -33.45)
CIE-LCHlch(27.35, 34.20, 282.03°)
OKLaboklab(37.58% -0.0183 -0.0956)
OKLCHoklch(37.58% 0.097 259.2)
XYZxyz(5.5497, 5.2185, 17.2344)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4074 #74531F
analogous
#1F6B74 #1F4074 #291F74
triadic
#1F4074 #741F40 #40741F
tetradic
#1F4074 #741F6B #74531F #1F7429
square
#1F4074 #741F6B #74531F #1F7429
split-complementary
#1F4074 #74291F #6B741F
monochromatic
#060D18 #122544 #1F4074 #2C5BA4 #4177CC

Accessibility & contrast

On white

10.27
#1F4074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F4074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4074
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4074#FFFFFF#000000##FFFFFF
##1F40741.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274576
Deuteranopia (green-blind)
#183D73
Tritanopia (blue-blind)
#004C54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4074;
/* rgb */ color: rgb(31, 64, 116);
/* oklch */ color: oklch(37.6% 0.097 259.2);
Tailwind
colors: {
  custom: {
    50: '#66749c',
    500: '#1f4074',
    950: '#000000',
  },
}
SCSS
$custom: #1f4074;
$custom-light: #66749c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4074",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 116
  },
  "hsl": {
    "h": 216.706,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37583,
    "c": 0.09731,
    "h": 259.2
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#1F4074
secondary
#A88247
accent
#A547E1
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06080E
muted
#7A7B7E

Preview Lab

Preview with #1F4074

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

Preview Lab → · Contrast checker → · Palette generator →

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