Midnight Blue (survey)#020035

#020035 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.1% C 0.101 H 267.6°. Best body text is #FFFFFF at 19.92:1 contrast (WCAG AA passes).

Midnight Blue (survey) — editorial page

Color values

HEX#020035
RGBrgb(2, 0, 53)
HSLhsl(242, 100%, 10%)
HSVhsv(242, 100%, 21%)
CMYKcmyk(96.2%, 100%, 0%, 79.2%)
CIE-LABlab(2.44, 16.83, -31.09)
CIE-LCHlch(2.44, 35.36, 298.43°)
OKLaboklab(15.12% -0.0042 -0.1012)
OKLCHoklch(15.12% 0.101 267.6)
XYZxyz(0.6674, 0.2699, 3.3844)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020035 #333500
analogous
#001835 #020035 #1C0035
triadic
#020035 #350200 #003502
tetradic
#020035 #350018 #333500 #00351C
square
#020035 #350018 #333500 #00351C
split-complementary
#020035 #351C00 #183500
monochromatic
#01001F #01001F #020035 #040072 #0700AF

Accessibility & contrast

On white

19.92
#020035 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#020035 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020035
19.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020035#FFFFFF#000000##FFFFFF
##0200351.0019.921.0519.92
#FFFFFF19.921.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C36
Deuteranopia (green-blind)
#000634
Tritanopia (blue-blind)
#00101B
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #020035;
/* rgb */ color: rgb(2, 0, 53);
/* oklch */ color: oklch(15.1% 0.101 267.6);
Tailwind
colors: {
  custom: {
    50: '#4b466d',
    500: '#020035',
    950: '#000000',
  },
}
SCSS
$custom: #020035;
$custom-light: #4b466d;
$custom-dark: #000000;
JSON
{
  "hex": "#020035",
  "rgb": {
    "r": 2,
    "g": 0,
    "b": 53
  },
  "hsl": {
    "h": 242.264,
    "s": 100,
    "l": 10.392
  },
  "oklch": {
    "l": 0.1512,
    "c": 0.10126,
    "h": 267.6
  },
  "luminance": 0.0027
}

Semantic roles & 50–950 ramp

primary
#020035
secondary
#777B16
accent
#FF29F7
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010007
muted
#77777A

Preview Lab

Preview with #020035

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

Preview Lab → · Contrast checker → · Palette generator →

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