#1F5181#1F5181

#1F5181 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.6% C 0.096 H 250.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#1F5181
RGBrgb(31, 81, 129)
HSLhsl(209, 61%, 31%)
HSVhsv(209, 76%, 51%)
CMYKcmyk(76%, 37.2%, 0%, 49.4%)
CIE-LABlab(33.48, 0.89, -31.82)
CIE-LCHlch(33.48, 31.83, 271.60°)
OKLaboklab(42.61% -0.0323 -0.0905)
OKLCHoklch(42.61% 0.096 250.4)
XYZxyz(7.4685, 7.7603, 21.8689)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5181 #814F1F
analogous
#1F8180 #1F5181 #1F2081
triadic
#1F5181 #811F51 #51811F
tetradic
#1F5181 #801F81 #814F1F #20811F
square
#1F5181 #801F81 #814F1F #20811F
split-complementary
#1F5181 #811F20 #81801F
monochromatic
#07131E #133250 #1F5181 #2B70B2 #478FD3

Accessibility & contrast

On white

8.23
#1F5181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#1F5181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5181
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5181#FFFFFF#000000##FFFFFF
##1F51811.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5483
Deuteranopia (green-blind)
#2D4B80
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f5181;
/* rgb */ color: rgb(31, 81, 129);
/* oklch */ color: oklch(42.6% 0.096 250.4);
Tailwind
colors: {
  custom: {
    50: '#6981a6',
    500: '#1f5181',
    950: '#000000',
  },
}
SCSS
$custom: #1f5181;
$custom-light: #6981a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5181",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 129
  },
  "hsl": {
    "h": 209.388,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42613,
    "c": 0.09609,
    "h": 250.4
  },
  "luminance": 0.07761
}

Semantic roles & 50–950 ramp

primary
#1F5181
secondary
#B47D48
accent
#9243E4
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F5181

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

Preview Lab → · Contrast checker → · Palette generator →

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