#1F5796#1F5796

#1F5796 is a mid, moderate cyan. Relative luminance 0.093; OKLCH L 45.4% C 0.118 H 254.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#1F5796
RGBrgb(31, 87, 150)
HSLhsl(212, 66%, 35%)
HSVhsv(212, 79%, 59%)
CMYKcmyk(79.3%, 42%, 0%, 41.2%)
CIE-LABlab(36.57, 5.24, -39.71)
CIE-LCHlch(36.57, 40.06, 277.52°)
OKLaboklab(45.43% -0.0325 -0.1135)
OKLCHoklch(45.43% 0.118 254)
XYZxyz(9.4762, 9.3086, 30.1455)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5796 #965E1F
analogous
#1F9296 #1F5796 #231F96
triadic
#1F5796 #961F57 #57961F
tetradic
#1F5796 #961F92 #965E1F #1F9623
square
#1F5796 #961F92 #965E1F #1F9623
split-complementary
#1F5796 #96231F #92961F
monochromatic
#0A1C31 #153A63 #1F5796 #2974C9 #5494DC

Accessibility & contrast

On white

7.34
#1F5796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#1F5796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5796
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5796#FFFFFF#000000##FFFFFF
##1F57961.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385C98
Deuteranopia (green-blind)
#245195
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1f5796;
/* rgb */ color: rgb(31, 87, 150);
/* oklch */ color: oklch(45.4% 0.118 254.0);
Tailwind
colors: {
  custom: {
    50: '#6d85b5',
    500: '#1f5796',
    950: '#000000',
  },
}
SCSS
$custom: #1f5796;
$custom-light: #6d85b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5796",
  "rgb": {
    "r": 31,
    "g": 87,
    "b": 150
  },
  "hsl": {
    "h": 211.765,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4543,
    "c": 0.11812,
    "h": 254
  },
  "luminance": 0.0931
}

Semantic roles & 50–950 ramp

primary
#1F5796
secondary
#BF8C52
accent
#993FE9
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#080B11
muted
#7B7C80

Preview Lab

Preview with #1F5796

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

Preview Lab → · Contrast checker → · Palette generator →

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