#1F538A#1F538A

#1F538A is a dark, moderate cyan. Relative luminance 0.083; OKLCH L 43.7% C 0.106 H 252.6°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#1F538A
RGBrgb(31, 83, 138)
HSLhsl(211, 63%, 33%)
HSVhsv(211, 78%, 54%)
CMYKcmyk(77.5%, 39.9%, 0%, 45.9%)
CIE-LABlab(34.62, 3.12, -35.53)
CIE-LCHlch(34.62, 35.66, 275.02°)
OKLaboklab(43.68% -0.0318 -0.1013)
OKLCHoklch(43.68% 0.106 252.6)
XYZxyz(8.2441, 8.3118, 25.2097)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F538A #8A561F
analogous
#1F888A #1F538A #201F8A
triadic
#1F538A #8A1F53 #538A1F
tetradic
#1F538A #8A1F88 #8A561F #1F8A20
square
#1F538A #8A1F88 #8A561F #1F8A20
split-complementary
#1F538A #8A201F #888A1F
monochromatic
#091726 #143558 #1F538A #2A71BC #4C90D7

Accessibility & contrast

On white

7.89
#1F538A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#1F538A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F538A
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F538A#FFFFFF#000000##FFFFFF
##1F538A1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578C
Deuteranopia (green-blind)
#284D89
Tritanopia (blue-blind)
#006068
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f538a;
/* rgb */ color: rgb(31, 83, 138);
/* oklch */ color: oklch(43.7% 0.106 252.6);
Tailwind
colors: {
  custom: {
    50: '#6b82ac',
    500: '#1f538a',
    950: '#000000',
  },
}
SCSS
$custom: #1f538a;
$custom-light: #6b82ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f538a",
  "rgb": {
    "r": 31,
    "g": 83,
    "b": 138
  },
  "hsl": {
    "h": 210.841,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43678,
    "c": 0.10621,
    "h": 252.6
  },
  "luminance": 0.08313
}

Semantic roles & 50–950 ramp

primary
#1F538A
secondary
#BA844B
accent
#9641E6
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#070A10
muted
#7A7C7F

Preview Lab

Preview with #1F538A

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

Preview Lab → · Contrast checker → · Palette generator →

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