#1F5182#1F5182

#1F5182 is a dark, moderate cyan. Relative luminance 0.078; OKLCH L 42.7% C 0.097 H 250.8°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#1F5182
RGBrgb(31, 81, 130)
HSLhsl(210, 61%, 32%)
HSVhsv(210, 76%, 51%)
CMYKcmyk(76.2%, 37.7%, 0%, 49%)
CIE-LABlab(33.54, 1.28, -32.34)
CIE-LCHlch(33.54, 32.37, 272.27°)
OKLaboklab(42.68% -0.032 -0.0921)
OKLCHoklch(42.68% 0.097 250.8)
XYZxyz(7.5353, 7.7870, 22.2207)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5182 #82501F
analogous
#1F8282 #1F5182 #1F2082
triadic
#1F5182 #821F51 #51821F
tetradic
#1F5182 #821F82 #82501F #20821F
square
#1F5182 #821F82 #82501F #20821F
split-complementary
#1F5182 #821F20 #82821F
monochromatic
#07131F #133251 #1F5182 #2B70B3 #488ED3

Accessibility & contrast

On white

8.21
#1F5182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#1F5182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5182
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5182#FFFFFF#000000##FFFFFF
##1F51821.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f5182;
/* rgb */ color: rgb(31, 81, 130);
/* oklch */ color: oklch(42.7% 0.097 250.8);
Tailwind
colors: {
  custom: {
    50: '#6981a6',
    500: '#1f5182',
    950: '#000000',
  },
}
SCSS
$custom: #1f5182;
$custom-light: #6981a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5182",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 130
  },
  "hsl": {
    "h": 209.697,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42676,
    "c": 0.09745,
    "h": 250.8
  },
  "luminance": 0.07788
}

Semantic roles & 50–950 ramp

primary
#1F5182
secondary
#B57E48
accent
#9343E5
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A0F
muted
#7A7C7F

Preview Lab

Preview with #1F5182

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

Preview Lab → · Contrast checker → · Palette generator →

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