#1F5291#1F5291

#1F5291 is a dark, moderate cyan. Relative luminance 0.084; OKLCH L 43.9% C 0.117 H 255.6°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#1F5291
RGBrgb(31, 82, 145)
HSLhsl(213, 65%, 35%)
HSVhsv(213, 79%, 57%)
CMYKcmyk(78.6%, 43.4%, 0%, 43.1%)
CIE-LABlab(34.74, 6.55, -39.61)
CIE-LCHlch(34.74, 40.15, 279.39°)
OKLaboklab(43.91% -0.0292 -0.1133)
OKLCHoklch(43.91% 0.117 255.6)
XYZxyz(8.6913, 8.3692, 27.9399)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5291 #915E1F
analogous
#1F8B91 #1F5291 #251F91
triadic
#1F5291 #911F52 #52911F
tetradic
#1F5291 #911F8B #915E1F #1F9125
square
#1F5291 #911F8B #915E1F #1F9125
split-complementary
#1F5291 #91251F #8B911F
monochromatic
#09192C #14355F #1F5291 #2A6FC3 #518EDA

Accessibility & contrast

On white

7.85
#1F5291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#1F5291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5291
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5291#FFFFFF#000000##FFFFFF
##1F52911.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335793
Deuteranopia (green-blind)
#1E4D90
Tritanopia (blue-blind)
#00616A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f5291;
/* rgb */ color: rgb(31, 82, 145);
/* oklch */ color: oklch(43.9% 0.117 255.6);
Tailwind
colors: {
  custom: {
    50: '#6c82b2',
    500: '#1f5291',
    950: '#000000',
  },
}
SCSS
$custom: #1f5291;
$custom-light: #6c82b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5291",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 145
  },
  "hsl": {
    "h": 213.158,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.43906,
    "c": 0.11704,
    "h": 255.6
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#1F5291
secondary
#BD8C4F
accent
#9D40E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F5291

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

Preview Lab → · Contrast checker → · Palette generator →

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