#1F5394#1F5394

#1F5394 is a dark, vivid cyan. Relative luminance 0.086; OKLCH L 44.3% C 0.120 H 255.8°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#1F5394
RGBrgb(31, 83, 148)
HSLhsl(213, 65%, 35%)
HSVhsv(213, 79%, 58%)
CMYKcmyk(79.1%, 43.9%, 0%, 42%)
CIE-LABlab(35.23, 7.08, -40.64)
CIE-LCHlch(35.23, 41.26, 279.89°)
OKLaboklab(44.35% -0.0294 -0.1164)
OKLCHoklch(44.35% 0.12 255.8)
XYZxyz(9.0016, 8.6149, 29.1996)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5394 #94601F
analogous
#1F8E94 #1F5394 #251F94
triadic
#1F5394 #941F53 #53941F
tetradic
#1F5394 #941F8E #94601F #1F9425
square
#1F5394 #941F8E #94601F #1F9425
split-complementary
#1F5394 #94251F #8E941F
monochromatic
#0A1A2F #143761 #1F5394 #2A6FC7 #538FDB

Accessibility & contrast

On white

7.71
#1F5394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#1F5394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5394
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5394#FFFFFF#000000##FFFFFF
##1F53941.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325997
Deuteranopia (green-blind)
#1D4E93
Tritanopia (blue-blind)
#00626C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f5394;
/* rgb */ color: rgb(31, 83, 148);
/* oklch */ color: oklch(44.3% 0.120 255.8);
Tailwind
colors: {
  custom: {
    50: '#6d82b4',
    500: '#1f5394',
    950: '#000000',
  },
}
SCSS
$custom: #1f5394;
$custom-light: #6d82b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5394",
  "rgb": {
    "r": 31,
    "g": 83,
    "b": 148
  },
  "hsl": {
    "h": 213.333,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44348,
    "c": 0.12003,
    "h": 255.8
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#1F5394
secondary
#BE8D51
accent
#9D3FE8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F5394

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

Preview Lab → · Contrast checker → · Palette generator →

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