#1F538D#1F538D

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

Color values

HEX#1F538D
RGBrgb(31, 83, 141)
HSLhsl(212, 64%, 34%)
HSVhsv(212, 78%, 55%)
CMYKcmyk(78%, 41.1%, 0%, 44.7%)
CIE-LABlab(34.80, 4.31, -37.07)
CIE-LCHlch(34.80, 37.32, 276.63°)
OKLaboklab(43.88% -0.031 -0.1059)
OKLCHoklch(43.88% 0.11 253.7)
XYZxyz(8.4643, 8.3999, 26.3694)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F538D #8D591F
analogous
#1F8A8D #1F538D #221F8D
triadic
#1F538D #8D1F53 #538D1F
tetradic
#1F538D #8D1F8A #8D591F #1F8D22
square
#1F538D #8D1F8A #8D591F #1F8D22
split-complementary
#1F538D #8D221F #8A8D1F
monochromatic
#091829 #14355B #1F538D #2A71BF #4E8FD8

Accessibility & contrast

On white

7.84
#1F538D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#1F538D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F538D
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F538D#FFFFFF#000000##FFFFFF
##1F538D1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37578F
Deuteranopia (green-blind)
#254D8C
Tritanopia (blue-blind)
#006169
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f538d;
/* rgb */ color: rgb(31, 83, 141);
/* oklch */ color: oklch(43.9% 0.110 253.7);
Tailwind
colors: {
  custom: {
    50: '#6b82af',
    500: '#1f538d',
    950: '#000000',
  },
}
SCSS
$custom: #1f538d;
$custom-light: #6b82af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f538d",
  "rgb": {
    "r": 31,
    "g": 83,
    "b": 141
  },
  "hsl": {
    "h": 211.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43875,
    "c": 0.11033,
    "h": 253.7
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F538D

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

Preview Lab → · Contrast checker → · Palette generator →

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