#072040#072040

#072040 is a very dark, moderate cyan. Relative luminance 0.014; OKLCH L 24.5% C 0.068 H 256.1°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#072040
RGBrgb(7, 32, 64)
HSLhsl(214, 80%, 14%)
HSVhsv(214, 89%, 25%)
CMYKcmyk(89.1%, 50%, 0%, 74.9%)
CIE-LABlab(12.27, 4.35, -23.10)
CIE-LCHlch(12.27, 23.51, 280.67°)
OKLaboklab(24.49% -0.0164 -0.0662)
OKLCHoklch(24.49% 0.068 256.1)
XYZxyz(1.5292, 1.4482, 5.0484)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#072040 #402707
analogous
#073D40 #072040 #0B0740
triadic
#072040 #400720 #204007
tetradic
#072040 #40073D #402707 #07400B
square
#072040 #40073D #402707 #07400B
split-complementary
#072040 #400B07 #3D4007
monochromatic
#030E1C #030E1C #072040 #0D3C77 #1357AE

Accessibility & contrast

On white

16.28
#072040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#072040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #072040
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##072040#FFFFFF#000000##FFFFFF
##0720401.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102341
Deuteranopia (green-blind)
#051E3F
Tritanopia (blue-blind)
#00282C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #072040;
/* rgb */ color: rgb(7, 32, 64);
/* oklch */ color: oklch(24.5% 0.068 256.1);
Tailwind
colors: {
  custom: {
    50: '#515a75',
    500: '#072040',
    950: '#000000',
  },
}
SCSS
$custom: #072040;
$custom-light: #515a75;
$custom-dark: #000000;
JSON
{
  "hex": "#072040",
  "rgb": {
    "r": 7,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 213.684,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24491,
    "c": 0.0682,
    "h": 256.1
  },
  "luminance": 0.01448
}

Semantic roles & 50–950 ramp

primary
#072040
secondary
#7F5724
accent
#A031F7
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #072040

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

Preview Lab → · Contrast checker → · Palette generator →

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