#071240#071240

#071240 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.0% C 0.089 H 267.2°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#071240
RGBrgb(7, 18, 64)
HSLhsl(228, 80%, 14%)
HSVhsv(228, 89%, 25%)
CMYKcmyk(89.1%, 71.9%, 0%, 74.9%)
CIE-LABlab(7.66, 15.38, -30.58)
CIE-LCHlch(7.66, 34.23, 296.70°)
OKLaboklab(20.99% -0.0043 -0.0885)
OKLCHoklch(20.99% 0.089 267.2)
XYZxyz(1.2290, 0.8478, 4.9484)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071240 #403507
analogous
#072F40 #071240 #190740
triadic
#071240 #400712 #124007
tetradic
#071240 #40072F #403507 #074019
square
#071240 #40072F #403507 #074019
split-complementary
#071240 #401907 #2F4007
monochromatic
#03081C #03081C #071240 #0D2277 #1331AE

Accessibility & contrast

On white

17.95
#071240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #071240
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071240#FFFFFF#000000##FFFFFF
##0712401.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001E26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #071240;
/* rgb */ color: rgb(7, 18, 64);
/* oklch */ color: oklch(21.0% 0.089 267.2);
Tailwind
colors: {
  custom: {
    50: '#524f75',
    500: '#071240',
    950: '#000000',
  },
}
SCSS
$custom: #071240;
$custom-light: #524f75;
$custom-dark: #000000;
JSON
{
  "hex": "#071240",
  "rgb": {
    "r": 7,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 228.421,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20987,
    "c": 0.08861,
    "h": 267.2
  },
  "luminance": 0.00848
}

Semantic roles & 50–950 ramp

primary
#071240
secondary
#7F6D24
accent
#D131F7
background
#F4F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #071240

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

Preview Lab → · Contrast checker → · Palette generator →

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