#071838#071838

#071838 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.7% C 0.067 H 261.4°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#071838
RGBrgb(7, 24, 56)
HSLhsl(219, 78%, 12%)
HSVhsv(219, 88%, 22%)
CMYKcmyk(87.5%, 57.1%, 0%, 78%)
CIE-LABlab(8.86, 6.91, -22.91)
CIE-LCHlch(8.86, 23.93, 286.78°)
OKLaboklab(21.66% -0.01 -0.0658)
OKLCHoklch(21.66% 0.067 261.4)
XYZxyz(1.1278, 0.9838, 3.8711)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#071838 #382707
analogous
#073138 #071838 #0F0738
triadic
#071838 #380718 #183807
tetradic
#071838 #380731 #382707 #07380F
square
#071838 #380731 #382707 #07380F
split-complementary
#071838 #380F07 #313807
monochromatic
#030C1B #030C1B #071838 #0E2F6E #1547A5

Accessibility & contrast

On white

17.55
#071838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#071838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #071838
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##071838#FFFFFF#000000##FFFFFF
##0718381.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061C39
Deuteranopia (green-blind)
#001737
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #071838;
/* rgb */ color: rgb(7, 24, 56);
/* oklch */ color: oklch(21.7% 0.067 261.4);
Tailwind
colors: {
  custom: {
    50: '#4f546f',
    500: '#071838',
    950: '#000000',
  },
}
SCSS
$custom: #071838;
$custom-light: #4f546f;
$custom-dark: #000000;
JSON
{
  "hex": "#071838",
  "rgb": {
    "r": 7,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 219.184,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21656,
    "c": 0.06658,
    "h": 261.4
  },
  "luminance": 0.00984
}

Semantic roles & 50–950 ramp

primary
#071838
secondary
#785A23
accent
#B134F4
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #071838

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

Preview Lab → · Contrast checker → · Palette generator →

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