#1F4181#1F4181

#1F4181 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.115 H 261.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#1F4181
RGBrgb(31, 65, 129)
HSLhsl(219, 61%, 31%)
HSVhsv(219, 76%, 51%)
CMYKcmyk(76%, 49.6%, 0%, 49.4%)
CIE-LABlab(28.53, 11.66, -39.72)
CIE-LCHlch(28.53, 41.40, 286.36°)
OKLaboklab(38.77% -0.0168 -0.114)
OKLCHoklch(38.77% 0.115 261.6)
XYZxyz(6.4164, 5.6562, 21.5182)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4181 #815F1F
analogous
#1F7281 #1F4181 #2E1F81
triadic
#1F4181 #811F41 #41811F
tetradic
#1F4181 #811F72 #815F1F #1F812E
square
#1F4181 #811F72 #815F1F #1F812E
split-complementary
#1F4181 #812E1F #72811F
monochromatic
#070F1E #132850 #1F4181 #2B5AB2 #4778D3

Accessibility & contrast

On white

9.85
#1F4181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1F4181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4181
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4181#FFFFFF#000000##FFFFFF
##1F41811.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4883
Deuteranopia (green-blind)
#023F80
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f4181;
/* rgb */ color: rgb(31, 65, 129);
/* oklch */ color: oklch(38.8% 0.115 261.6);
Tailwind
colors: {
  custom: {
    50: '#6975a6',
    500: '#1f4181',
    950: '#000000',
  },
}
SCSS
$custom: #1f4181;
$custom-light: #6975a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4181",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 129
  },
  "hsl": {
    "h": 219.184,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38772,
    "c": 0.11525,
    "h": 261.6
  },
  "luminance": 0.05657
}

Semantic roles & 50–950 ramp

primary
#1F4181
secondary
#B48E48
accent
#AD43E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4181

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

Preview Lab → · Contrast checker → · Palette generator →

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