#021034#021034

#021034 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.9% C 0.075 H 262.2°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#021034
RGBrgb(2, 16, 52)
HSLhsl(223, 93%, 11%)
HSVhsv(223, 96%, 20%)
CMYKcmyk(96.2%, 69.2%, 0%, 79.6%)
CIE-LABlab(5.70, 9.42, -25.10)
CIE-LCHlch(5.70, 26.81, 290.56°)
OKLaboklab(18.86% -0.0101 -0.0739)
OKLCHoklch(18.86% 0.075 262.2)
XYZxyz(0.8299, 0.6313, 3.3263)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021034 #342602
analogous
#022934 #021034 #0D0234
triadic
#021034 #340210 #103402
tetradic
#021034 #340229 #342602 #02340D
square
#021034 #340229 #342602 #02340D
split-complementary
#021034 #340D02 #293402
monochromatic
#01091D #01091D #021034 #04226F #0734AA

Accessibility & contrast

On white

18.65
#021034 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#021034 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021034
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021034#FFFFFF#000000##FFFFFF
##0210341.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001535
Deuteranopia (green-blind)
#001033
Tritanopia (blue-blind)
#00191F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #021034;
/* rgb */ color: rgb(2, 16, 52);
/* oklch */ color: oklch(18.9% 0.075 262.2);
Tailwind
colors: {
  custom: {
    50: '#4b4e6c',
    500: '#021034',
    950: '#000000',
  },
}
SCSS
$custom: #021034;
$custom-light: #4b4e6c;
$custom-dark: #000000;
JSON
{
  "hex": "#021034",
  "rgb": {
    "r": 2,
    "g": 16,
    "b": 52
  },
  "hsl": {
    "h": 223.2,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18859,
    "c": 0.07463,
    "h": 262.2
  },
  "luminance": 0.00631
}

Semantic roles & 50–950 ramp

primary
#021034
secondary
#785E1A
accent
#C329FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010107
muted
#77777A

Preview Lab

Preview with #021034

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

Preview Lab → · Contrast checker → · Palette generator →

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