#1F538E#1F538E

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

Color values

HEX#1F538E
RGBrgb(31, 83, 142)
HSLhsl(212, 64%, 34%)
HSVhsv(212, 78%, 56%)
CMYKcmyk(78.2%, 41.5%, 0%, 44.3%)
CIE-LABlab(34.86, 4.70, -37.59)
CIE-LCHlch(34.86, 37.88, 277.13°)
OKLaboklab(43.94% -0.0308 -0.1074)
OKLCHoklch(43.94% 0.112 254)
XYZxyz(8.5390, 8.4298, 26.7630)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F538E #8E5A1F
analogous
#1F8B8E #1F538E #231F8E
triadic
#1F538E #8E1F53 #538E1F
tetradic
#1F538E #8E1F8B #8E5A1F #1F8E23
square
#1F538E #8E1F8B #8E5A1F #1F8E23
split-complementary
#1F538E #8E231F #8B8E1F
monochromatic
#09182A #14365C #1F538E #2A70C0 #4F8FD9

Accessibility & contrast

On white

7.82
#1F538E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#1F538E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F538E
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F538E#FFFFFF#000000##FFFFFF
##1F538E1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375790
Deuteranopia (green-blind)
#244D8D
Tritanopia (blue-blind)
#006169
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f538e;
/* rgb */ color: rgb(31, 83, 142);
/* oklch */ color: oklch(43.9% 0.112 254.0);
Tailwind
colors: {
  custom: {
    50: '#6c82af',
    500: '#1f538e',
    950: '#000000',
  },
}
SCSS
$custom: #1f538e;
$custom-light: #6c82af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f538e",
  "rgb": {
    "r": 31,
    "g": 83,
    "b": 142
  },
  "hsl": {
    "h": 211.892,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43941,
    "c": 0.11172,
    "h": 254
  },
  "luminance": 0.08431
}

Semantic roles & 50–950 ramp

primary
#1F538E
secondary
#BB884D
accent
#9941E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F538E

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

Preview Lab → · Contrast checker → · Palette generator →

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