#072540#072540

#072540 is a dark, moderate cyan. Relative luminance 0.017; OKLCH L 25.9% C 0.062 H 249.5°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#072540
RGBrgb(7, 37, 64)
HSLhsl(208, 80%, 14%)
HSVhsv(208, 89%, 25%)
CMYKcmyk(89.1%, 42.2%, 0%, 74.9%)
CIE-LABlab(14.05, 0.57, -20.27)
CIE-LCHlch(14.05, 20.28, 271.62°)
OKLaboklab(25.87% -0.0216 -0.0578)
OKLCHoklch(25.87% 0.062 249.5)
XYZxyz(1.6743, 1.7383, 5.0968)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#072540 #402207
analogous
#07403F #072540 #070940
triadic
#072540 #400725 #254007
tetradic
#072540 #3F0740 #402207 #094007
square
#072540 #3F0740 #402207 #094007
split-complementary
#072540 #400709 #403F07
monochromatic
#03101C #03101C #072540 #0D4577 #1365AE

Accessibility & contrast

On white

15.58
#072540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#072540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #072540
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##072540#FFFFFF#000000##FFFFFF
##0725401.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182741
Deuteranopia (green-blind)
#10213F
Tritanopia (blue-blind)
#002B2F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #072540;
/* rgb */ color: rgb(7, 37, 64);
/* oklch */ color: oklch(25.9% 0.062 249.5);
Tailwind
colors: {
  custom: {
    50: '#515f75',
    500: '#072540',
    950: '#000000',
  },
}
SCSS
$custom: #072540;
$custom-light: #515f75;
$custom-dark: #000000;
JSON
{
  "hex": "#072540",
  "rgb": {
    "r": 7,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 208.421,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25875,
    "c": 0.06167,
    "h": 249.5
  },
  "luminance": 0.01738
}

Semantic roles & 50–950 ramp

primary
#072540
secondary
#7F4F24
accent
#8F31F7
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020408
muted
#78797B

Preview Lab

Preview with #072540

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

Preview Lab → · Contrast checker → · Palette generator →

#072540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva