#070542#070542

#070542 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.8% C 0.108 H 271.0°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#070542
RGBrgb(7, 5, 66)
HSLhsl(242, 86%, 14%)
HSVhsv(242, 92%, 26%)
CMYKcmyk(89.4%, 92.4%, 0%, 74.1%)
CIE-LABlab(4.94, 23.69, -36.46)
CIE-LCHlch(4.94, 43.48, 303.01°)
OKLaboklab(18.76% 0.0018 -0.108)
OKLCHoklch(18.76% 0.108 271)
XYZxyz(1.1249, 0.5469, 5.1995)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#070542 #404205
analogous
#052242 #070542 #260542
triadic
#070542 #420705 #054207
tetradic
#070542 #420522 #404205 #054226
square
#070542 #420522 #404205 #054226
split-complementary
#070542 #422605 #224205
monochromatic
#03021C #03021C #070542 #0D097B #130EB4

Accessibility & contrast

On white

18.93
#070542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#070542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #070542
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##070542#FFFFFF#000000##FFFFFF
##0705421.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001444
Deuteranopia (green-blind)
#000D41
Tritanopia (blue-blind)
#001824
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #070542;
/* rgb */ color: rgb(7, 5, 66);
/* oklch */ color: oklch(18.8% 0.108 271.0);
Tailwind
colors: {
  custom: {
    50: '#534777',
    500: '#070542',
    950: '#000000',
  },
}
SCSS
$custom: #070542;
$custom-light: #534777;
$custom-dark: #000000;
JSON
{
  "hex": "#070542",
  "rgb": {
    "r": 7,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 241.967,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.18759,
    "c": 0.10802,
    "h": 271
  },
  "luminance": 0.00547
}

Semantic roles & 50–950 ramp

primary
#070542
secondary
#7F8220
accent
#FC2CF5
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030009
muted
#78777B

Preview Lab

Preview with #070542

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

Preview Lab → · Contrast checker → · Palette generator →

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