#071242#071242

#071242 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.2% C 0.092 H 267.3°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#071242
RGBrgb(7, 18, 66)
HSLhsl(229, 81%, 14%)
HSVhsv(229, 89%, 26%)
CMYKcmyk(89.4%, 72.7%, 0%, 74.1%)
CIE-LABlab(7.87, 16.30, -31.66)
CIE-LCHlch(7.87, 35.61, 297.24°)
OKLaboklab(21.21% -0.0044 -0.0916)
OKLCHoklch(21.21% 0.092 267.3)
XYZxyz(1.2870, 0.8710, 5.2535)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071242 #423707
analogous
#073042 #071242 #1A0742
triadic
#071242 #420712 #124207
tetradic
#071242 #420730 #423707 #07421A
square
#071242 #420730 #423707 #07421A
split-complementary
#071242 #421A07 #304207
monochromatic
#03081C #03081C #071242 #0D2179 #1330B1

Accessibility & contrast

On white

17.88
#071242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#071242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #071242
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071242#FFFFFF#000000##FFFFFF
##0712421.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #071242;
/* rgb */ color: rgb(7, 18, 66);
/* oklch */ color: oklch(21.2% 0.092 267.3);
Tailwind
colors: {
  custom: {
    50: '#534f77',
    500: '#071242',
    950: '#000000',
  },
}
SCSS
$custom: #071242;
$custom-light: #534f77;
$custom-dark: #000000;
JSON
{
  "hex": "#071242",
  "rgb": {
    "r": 7,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 228.814,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2121,
    "c": 0.09174,
    "h": 267.3
  },
  "luminance": 0.00871
}

Semantic roles & 50–950 ramp

primary
#071242
secondary
#817024
accent
#D231F7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #071242

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

Preview Lab → · Contrast checker → · Palette generator →

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