#070540#070540

#070540 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.5% C 0.105 H 271.3°. Best body text is #FFFFFF at 19.01:1 contrast (WCAG AA passes).

Color values

HEX#070540
RGBrgb(7, 5, 64)
HSLhsl(242, 86%, 14%)
HSVhsv(242, 92%, 25%)
CMYKcmyk(89.1%, 92.2%, 0%, 74.9%)
CIE-LABlab(4.73, 22.60, -35.37)
CIE-LCHlch(4.73, 41.97, 302.57°)
OKLaboklab(18.47% 0.0024 -0.1053)
OKLCHoklch(18.47% 0.105 271.3)
XYZxyz(1.0670, 0.5238, 4.8944)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#070540 #3E4005
analogous
#052040 #070540 #240540
triadic
#070540 #400705 #054007
tetradic
#070540 #400520 #3E4005 #054024
square
#070540 #400520 #3E4005 #054024
split-complementary
#070540 #402405 #204005
monochromatic
#03021C #03021C #070540 #0D0979 #130EB2

Accessibility & contrast

On white

19.01
#070540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#070540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #070540
19.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##070540#FFFFFF#000000##FFFFFF
##0705401.0019.011.1019.01
#FFFFFF19.011.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000D3F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #070540;
/* rgb */ color: rgb(7, 5, 64);
/* oklch */ color: oklch(18.5% 0.105 271.3);
Tailwind
colors: {
  custom: {
    50: '#534776',
    500: '#070540',
    950: '#000000',
  },
}
SCSS
$custom: #070540;
$custom-light: #534776;
$custom-dark: #000000;
JSON
{
  "hex": "#070540",
  "rgb": {
    "r": 7,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 242.034,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18473,
    "c": 0.1053,
    "h": 271.3
  },
  "luminance": 0.00524
}

Semantic roles & 50–950 ramp

primary
#070540
secondary
#7D8120
accent
#FC2CF5
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #070540

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

Preview Lab → · Contrast checker → · Palette generator →

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