#1F628F#1F628F

#1F628F is a mid, moderate cyan. Relative luminance 0.110; OKLCH L 47.7% C 0.098 H 242.7°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#1F628F
RGBrgb(31, 98, 143)
HSLhsl(204, 64%, 34%)
HSVhsv(204, 78%, 56%)
CMYKcmyk(78.3%, 31.5%, 0%, 43.9%)
CIE-LABlab(39.60, -4.47, -30.70)
CIE-LCHlch(39.60, 31.02, 261.72°)
OKLaboklab(47.68% -0.0449 -0.087)
OKLCHoklch(47.68% 0.098 242.7)
XYZxyz(9.8888, 11.0087, 27.5850)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F628F #8F4C1F
analogous
#1F8F84 #1F628F #1F2A8F
triadic
#1F628F #8F1F62 #628F1F
tetradic
#1F628F #841F8F #8F4C1F #2A8F1F
square
#1F628F #841F8F #8F4C1F #2A8F1F
split-complementary
#1F628F #8F1F2A #8F841F
monochromatic
#091D2A #14405D #1F628F #2A84C1 #4FA2D9

Accessibility & contrast

On white

6.56
#1F628F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#1F628F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F628F
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F628F#FFFFFF#000000##FFFFFF
##1F628F1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6391
Deuteranopia (green-blind)
#3E598E
Tritanopia (blue-blind)
#006D72
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f628f;
/* rgb */ color: rgb(31, 98, 143);
/* oklch */ color: oklch(47.7% 0.098 242.7);
Tailwind
colors: {
  custom: {
    50: '#6c8eb0',
    500: '#1f628f',
    950: '#000000',
  },
}
SCSS
$custom: #1f628f;
$custom-light: #6c8eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f628f",
  "rgb": {
    "r": 31,
    "g": 98,
    "b": 143
  },
  "hsl": {
    "h": 204.107,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.47676,
    "c": 0.09791,
    "h": 242.7
  },
  "luminance": 0.1101
}

Semantic roles & 50–950 ramp

primary
#1F628F
secondary
#BC7A4E
accent
#8440E7
background
#F7F8FA
surface
#EDF0F4
border
#C8CBCE
text
#080C10
muted
#7B7D7F

Preview Lab

Preview with #1F628F

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

Preview Lab → · Contrast checker → · Palette generator →

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