#1F538B#1F538B

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

Color values

HEX#1F538B
RGBrgb(31, 83, 139)
HSLhsl(211, 64%, 33%)
HSVhsv(211, 78%, 55%)
CMYKcmyk(77.7%, 40.3%, 0%, 45.5%)
CIE-LABlab(34.68, 3.52, -36.04)
CIE-LCHlch(34.68, 36.22, 275.57°)
OKLaboklab(43.74% -0.0315 -0.1029)
OKLCHoklch(43.74% 0.108 253)
XYZxyz(8.3168, 8.3409, 25.5927)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F538B #8B571F
analogous
#1F898B #1F538B #211F8B
triadic
#1F538B #8B1F53 #538B1F
tetradic
#1F538B #8B1F89 #8B571F #1F8B21
square
#1F538B #8B1F89 #8B571F #1F8B21
split-complementary
#1F538B #8B211F #898B1F
monochromatic
#091727 #143559 #1F538B #2A71BD #4D90D7

Accessibility & contrast

On white

7.87
#1F538B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F538B
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F538B#FFFFFF#000000##FFFFFF
##1F538B1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578D
Deuteranopia (green-blind)
#274D8A
Tritanopia (blue-blind)
#006068
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f538b;
/* rgb */ color: rgb(31, 83, 139);
/* oklch */ color: oklch(43.7% 0.108 253.0);
Tailwind
colors: {
  custom: {
    50: '#6b82ad',
    500: '#1f538b',
    950: '#000000',
  },
}
SCSS
$custom: #1f538b;
$custom-light: #6b82ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f538b",
  "rgb": {
    "r": 31,
    "g": 83,
    "b": 139
  },
  "hsl": {
    "h": 211.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43743,
    "c": 0.10758,
    "h": 253
  },
  "luminance": 0.08342
}

Semantic roles & 50–950 ramp

primary
#1F538B
secondary
#BA854C
accent
#9741E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F538B

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

Preview Lab → · Contrast checker → · Palette generator →

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