#1F538F#1F538F

#1F538F is a dark, moderate cyan. Relative luminance 0.085; OKLCH L 44.0% C 0.113 H 254.3°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#1F538F
RGBrgb(31, 83, 143)
HSLhsl(212, 64%, 34%)
HSVhsv(212, 78%, 56%)
CMYKcmyk(78.3%, 42%, 0%, 43.9%)
CIE-LABlab(34.92, 5.10, -38.10)
CIE-LCHlch(34.92, 38.44, 277.62°)
OKLaboklab(44.01% -0.0305 -0.1089)
OKLCHoklch(44.01% 0.113 254.3)
XYZxyz(8.6144, 8.4600, 27.1602)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F538F #8F5B1F
analogous
#1F8B8F #1F538F #231F8F
triadic
#1F538F #8F1F53 #538F1F
tetradic
#1F538F #8F1F8B #8F5B1F #1F8F23
square
#1F538F #8F1F8B #8F5B1F #1F8F23
split-complementary
#1F538F #8F231F #8B8F1F
monochromatic
#09192A #14365D #1F538F #2A70C1 #4F8FD9

Accessibility & contrast

On white

7.80
#1F538F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F538F
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F538F#FFFFFF#000000##FFFFFF
##1F538F1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365891
Deuteranopia (green-blind)
#234D8E
Tritanopia (blue-blind)
#00616A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f538f;
/* rgb */ color: rgb(31, 83, 143);
/* oklch */ color: oklch(44.0% 0.113 254.3);
Tailwind
colors: {
  custom: {
    50: '#6c82b0',
    500: '#1f538f',
    950: '#000000',
  },
}
SCSS
$custom: #1f538f;
$custom-light: #6c82b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f538f",
  "rgb": {
    "r": 31,
    "g": 83,
    "b": 143
  },
  "hsl": {
    "h": 212.143,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44008,
    "c": 0.1131,
    "h": 254.3
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

primary
#1F538F
secondary
#BC894E
accent
#9A40E7
background
#F6F7FA
surface
#ECEEF5
border
#C7C9CF
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F538F

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

Preview Lab → · Contrast checker → · Palette generator →

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