#1F538C#1F538C

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

Color values

HEX#1F538C
RGBrgb(31, 83, 140)
HSLhsl(211, 64%, 34%)
HSVhsv(211, 78%, 55%)
CMYKcmyk(77.9%, 40.7%, 0%, 45.1%)
CIE-LABlab(34.74, 3.91, -36.56)
CIE-LCHlch(34.74, 36.77, 276.11°)
OKLaboklab(43.81% -0.0313 -0.1044)
OKLCHoklch(43.81% 0.109 253.3)
XYZxyz(8.3902, 8.3703, 25.9793)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F538C #8C581F
analogous
#1F898C #1F538C #211F8C
triadic
#1F538C #8C1F53 #538C1F
tetradic
#1F538C #8C1F89 #8C581F #1F8C21
square
#1F538C #8C1F89 #8C581F #1F8C21
split-complementary
#1F538C #8C211F #898C1F
monochromatic
#091828 #14355A #1F538C #2A71BE #4E90D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F538C#FFFFFF#000000##FFFFFF
##1F538C1.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)
#38578E
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#006068
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f538c;
/* rgb */ color: rgb(31, 83, 140);
/* oklch */ color: oklch(43.8% 0.109 253.3);
Tailwind
colors: {
  custom: {
    50: '#6b82ae',
    500: '#1f538c',
    950: '#000000',
  },
}
SCSS
$custom: #1f538c;
$custom-light: #6b82ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f538c",
  "rgb": {
    "r": 31,
    "g": 83,
    "b": 140
  },
  "hsl": {
    "h": 211.376,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43809,
    "c": 0.10896,
    "h": 253.3
  },
  "luminance": 0.08371
}

Semantic roles & 50–950 ramp

primary
#1F538C
secondary
#BB864C
accent
#9841E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F538C

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

Preview Lab → · Contrast checker → · Palette generator →

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