#1F5281#1F5281

#1F5281 is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 42.9% C 0.095 H 249.5°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#1F5281
RGBrgb(31, 82, 129)
HSLhsl(209, 61%, 31%)
HSVhsv(209, 76%, 51%)
CMYKcmyk(76%, 36.4%, 0%, 49.4%)
CIE-LABlab(33.79, 0.24, -31.32)
CIE-LCHlch(33.79, 31.32, 270.44°)
OKLaboklab(42.86% -0.0333 -0.089)
OKLCHoklch(42.86% 0.095 249.5)
XYZxyz(7.5433, 7.9100, 21.8939)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5281 #814E1F
analogous
#1F817F #1F5281 #1F2181
triadic
#1F5281 #811F52 #52811F
tetradic
#1F5281 #7F1F81 #814E1F #21811F
square
#1F5281 #7F1F81 #814E1F #21811F
split-complementary
#1F5281 #811F21 #817F1F
monochromatic
#07131E #133350 #1F5281 #2B71B2 #4790D3

Accessibility & contrast

On white

8.13
#1F5281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#1F5281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5281
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5281#FFFFFF#000000##FFFFFF
##1F52811.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5483
Deuteranopia (green-blind)
#2E4B80
Tritanopia (blue-blind)
#005D63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f5281;
/* rgb */ color: rgb(31, 82, 129);
/* oklch */ color: oklch(42.9% 0.095 249.5);
Tailwind
colors: {
  custom: {
    50: '#6982a6',
    500: '#1f5281',
    950: '#000000',
  },
}
SCSS
$custom: #1f5281;
$custom-light: #6982a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5281",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 129
  },
  "hsl": {
    "h": 208.776,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42861,
    "c": 0.09504,
    "h": 249.5
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#1F5281
secondary
#B47C48
accent
#9143E4
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F5281

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

Preview Lab → · Contrast checker → · Palette generator →

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