#1F4881#1F4881

#1F4881 is a dark, moderate cyan. Relative luminance 0.065; OKLCH L 40.4% C 0.106 H 257.3°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#1F4881
RGBrgb(31, 72, 129)
HSLhsl(215, 61%, 31%)
HSVhsv(215, 76%, 51%)
CMYKcmyk(76%, 44.2%, 0%, 49.4%)
CIE-LABlab(30.66, 6.87, -36.30)
CIE-LCHlch(30.66, 36.94, 280.71°)
OKLaboklab(40.42% -0.0234 -0.1038)
OKLCHoklch(40.42% 0.106 257.3)
XYZxyz(6.8434, 6.5103, 21.6606)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4881 #81581F
analogous
#1F7981 #1F4881 #271F81
triadic
#1F4881 #811F48 #48811F
tetradic
#1F4881 #811F79 #81581F #1F8127
square
#1F4881 #811F79 #81581F #1F8127
split-complementary
#1F4881 #81271F #79811F
monochromatic
#07111E #132C50 #1F4881 #2B64B2 #4782D3

Accessibility & contrast

On white

9.12
#1F4881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F4881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4881
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4881#FFFFFF#000000##FFFFFF
##1F48811.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4D83
Deuteranopia (green-blind)
#1B4480
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4881;
/* rgb */ color: rgb(31, 72, 129);
/* oklch */ color: oklch(40.4% 0.106 257.3);
Tailwind
colors: {
  custom: {
    50: '#697aa6',
    500: '#1f4881',
    950: '#000000',
  },
}
SCSS
$custom: #1f4881;
$custom-light: #697aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4881",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 129
  },
  "hsl": {
    "h": 214.898,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40419,
    "c": 0.1064,
    "h": 257.3
  },
  "luminance": 0.06511
}

Semantic roles & 50–950 ramp

primary
#1F4881
secondary
#B48748
accent
#A143E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4881

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

Preview Lab → · Contrast checker → · Palette generator →

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