#020434#020434

#020434 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 16.0% C 0.093 H 267.2°. Best body text is #FFFFFF at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#020434
RGBrgb(2, 4, 52)
HSLhsl(238, 93%, 11%)
HSVhsv(238, 96%, 20%)
CMYKcmyk(96.2%, 92.3%, 0%, 79.6%)
CIE-LABlab(3.14, 14.65, -29.22)
CIE-LCHlch(3.14, 32.69, 296.63°)
OKLaboklab(16.05% -0.0045 -0.0925)
OKLCHoklch(16.05% 0.093 267.2)
XYZxyz(0.6881, 0.3476, 3.2790)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020434 #343202
analogous
#021D34 #020434 #190234
triadic
#020434 #340204 #043402
tetradic
#020434 #34021D #343202 #023419
square
#020434 #34021D #343202 #023419
split-complementary
#020434 #341902 #1D3402
monochromatic
#01021D #01021D #020434 #04096F #070DAA

Accessibility & contrast

On white

19.63
#020434 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#020434 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020434
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020434#FFFFFF#000000##FFFFFF
##0204341.0019.631.0719.63
#FFFFFF19.631.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E35
Deuteranopia (green-blind)
#000933
Tritanopia (blue-blind)
#00121B
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #020434;
/* rgb */ color: rgb(2, 4, 52);
/* oklch */ color: oklch(16.0% 0.093 267.2);
Tailwind
colors: {
  custom: {
    50: '#4b486c',
    500: '#020434',
    950: '#000000',
  },
}
SCSS
$custom: #020434;
$custom-light: #4b486c;
$custom-dark: #000000;
JSON
{
  "hex": "#020434",
  "rgb": {
    "r": 2,
    "g": 4,
    "b": 52
  },
  "hsl": {
    "h": 237.6,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.16045,
    "c": 0.09262,
    "h": 267.2
  },
  "luminance": 0.00348
}

Semantic roles & 50–950 ramp

primary
#020434
secondary
#78741A
accent
#F629FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010007
muted
#77777A

Preview Lab

Preview with #020434

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

Preview Lab → · Contrast checker → · Palette generator →

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