#021834#021834

#021834 is a very dark, moderate cyan. Relative luminance 0.009; OKLCH L 21.0% C 0.063 H 254.7°. Best body text is #FFFFFF at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#021834
RGBrgb(2, 24, 52)
HSLhsl(214, 93%, 11%)
HSVhsv(214, 96%, 20%)
CMYKcmyk(96.2%, 53.8%, 0%, 79.6%)
CIE-LABlab(8.25, 3.96, -21.00)
CIE-LCHlch(8.25, 21.37, 280.69°)
OKLaboklab(21.01% -0.0165 -0.0603)
OKLCHoklch(21.01% 0.063 254.7)
XYZxyz(0.9713, 0.9140, 3.3734)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021834 #341E02
analogous
#023134 #021834 #050234
triadic
#021834 #340218 #183402
tetradic
#021834 #340231 #341E02 #023405
square
#021834 #340231 #341E02 #023405
split-complementary
#021834 #340502 #313402
monochromatic
#010E1D #010E1D #021834 #04336F #074EAA

Accessibility & contrast

On white

17.75
#021834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#021834 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021834
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021834#FFFFFF#000000##FFFFFF
##0218341.0017.751.1817.75
#FFFFFF17.751.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091B35
Deuteranopia (green-blind)
#011633
Tritanopia (blue-blind)
#001F23
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #021834;
/* rgb */ color: rgb(2, 24, 52);
/* oklch */ color: oklch(21.0% 0.063 254.7);
Tailwind
colors: {
  custom: {
    50: '#4b546b',
    500: '#021834',
    950: '#000000',
  },
}
SCSS
$custom: #021834;
$custom-light: #4b546b;
$custom-dark: #000000;
JSON
{
  "hex": "#021834",
  "rgb": {
    "r": 2,
    "g": 24,
    "b": 52
  },
  "hsl": {
    "h": 213.6,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21009,
    "c": 0.06255,
    "h": 254.7
  },
  "luminance": 0.00914
}

Semantic roles & 50–950 ramp

primary
#021834
secondary
#784F1A
accent
#A129FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010207
muted
#77787A

Preview Lab

Preview with #021834

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

Preview Lab → · Contrast checker → · Palette generator →

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