#1F4875#1F4875

#1F4875 is a dark, moderate cyan. Relative luminance 0.062; OKLCH L 39.6% C 0.089 H 252.8°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#1F4875
RGBrgb(31, 72, 117)
HSLhsl(211, 58%, 29%)
HSVhsv(211, 74%, 46%)
CMYKcmyk(73.5%, 38.5%, 0%, 54.1%)
CIE-LABlab(29.94, 2.10, -29.96)
CIE-LCHlch(29.94, 30.03, 274.01°)
OKLaboklab(39.61% -0.0263 -0.0852)
OKLCHoklch(39.61% 0.089 252.8)
XYZxyz(6.0921, 6.2097, 17.7037)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4875 #754C1F
analogous
#1F7375 #1F4875 #211F75
triadic
#1F4875 #751F48 #48751F
tetradic
#1F4875 #751F73 #754C1F #1F7521
square
#1F4875 #751F73 #754C1F #1F7521
split-complementary
#1F4875 #75211F #73751F
monochromatic
#060F18 #122A45 #1F4875 #2C66A5 #4284CD

Accessibility & contrast

On white

9.37
#1F4875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F4875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4875
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4875#FFFFFF#000000##FFFFFF
##1F48751.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344B77
Deuteranopia (green-blind)
#274374
Tritanopia (blue-blind)
#005359
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4875;
/* rgb */ color: rgb(31, 72, 117);
/* oklch */ color: oklch(39.6% 0.089 252.8);
Tailwind
colors: {
  custom: {
    50: '#667a9d',
    500: '#1f4875',
    950: '#000000',
  },
}
SCSS
$custom: #1f4875;
$custom-light: #667a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4875",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 117
  },
  "hsl": {
    "h": 211.395,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39614,
    "c": 0.0892,
    "h": 252.8
  },
  "luminance": 0.0621
}

Semantic roles & 50–950 ramp

primary
#1F4875
secondary
#A97A47
accent
#9846E1
background
#F6F7F9
surface
#EBEDF2
border
#C6C8CC
text
#06090E
muted
#7A7B7E

Preview Lab

Preview with #1F4875

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

Preview Lab → · Contrast checker → · Palette generator →

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