#1F508B#1F508B

#1F508B is a dark, moderate cyan. Relative luminance 0.079; OKLCH L 43.0% C 0.111 H 255.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#1F508B
RGBrgb(31, 80, 139)
HSLhsl(213, 64%, 33%)
HSVhsv(213, 78%, 55%)
CMYKcmyk(77.7%, 42.4%, 0%, 45.5%)
CIE-LABlab(33.76, 5.49, -37.52)
CIE-LCHlch(33.76, 37.92, 278.33°)
OKLaboklab(43.02% -0.0287 -0.1072)
OKLCHoklch(43.02% 0.111 255)
XYZxyz(8.0922, 7.8918, 25.5179)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F508B #8B5A1F
analogous
#1F868B #1F508B #241F8B
triadic
#1F508B #8B1F50 #508B1F
tetradic
#1F508B #8B1F86 #8B5A1F #1F8B24
square
#1F508B #8B1F86 #8B5A1F #1F8B24
split-complementary
#1F508B #8B241F #868B1F
monochromatic
#091627 #143359 #1F508B #2A6DBD #4D8CD7

Accessibility & contrast

On white

8.14
#1F508B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#1F508B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F508B
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F508B#FFFFFF#000000##FFFFFF
##1F508B1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33558D
Deuteranopia (green-blind)
#214B8A
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f508b;
/* rgb */ color: rgb(31, 80, 139);
/* oklch */ color: oklch(43.0% 0.111 255.0);
Tailwind
colors: {
  custom: {
    50: '#6b80ad',
    500: '#1f508b',
    950: '#000000',
  },
}
SCSS
$custom: #1f508b;
$custom-light: #6b80ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f508b",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 139
  },
  "hsl": {
    "h": 212.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43021,
    "c": 0.11102,
    "h": 255
  },
  "luminance": 0.07893
}

Semantic roles & 50–950 ramp

primary
#1F508B
secondary
#BA884C
accent
#9C41E7
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#080A10
muted
#7A7C7F

Preview Lab

Preview with #1F508B

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

Preview Lab → · Contrast checker → · Palette generator →

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