#020334#020334

#020334 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.8% C 0.094 H 267.4°. Best body text is #FFFFFF at 19.71:1 contrast (WCAG AA passes).

Color values

HEX#020334
RGBrgb(2, 3, 52)
HSLhsl(239, 93%, 11%)
HSVhsv(239, 96%, 20%)
CMYKcmyk(96.2%, 94.2%, 0%, 79.6%)
CIE-LABlab(2.94, 15.05, -29.54)
CIE-LCHlch(2.94, 33.15, 297.00°)
OKLaboklab(15.78% -0.0043 -0.0943)
OKLCHoklch(15.78% 0.094 267.4)
XYZxyz(0.6772, 0.3259, 3.2754)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020334 #343302
analogous
#021C34 #020334 #1A0234
triadic
#020334 #340203 #033402
tetradic
#020334 #34021C #343302 #02341A
square
#020334 #34021C #343302 #02341A
split-complementary
#020334 #341A02 #1C3402
monochromatic
#01021D #01021D #020334 #04066F #070AAA

Accessibility & contrast

On white

19.71
#020334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020334
19.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020334#FFFFFF#000000##FFFFFF
##0203341.0019.711.0719.71
#FFFFFF19.711.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #020334;
/* rgb */ color: rgb(2, 3, 52);
/* oklch */ color: oklch(15.8% 0.094 267.4);
Tailwind
colors: {
  custom: {
    50: '#4b476c',
    500: '#020334',
    950: '#000000',
  },
}
SCSS
$custom: #020334;
$custom-light: #4b476c;
$custom-dark: #000000;
JSON
{
  "hex": "#020334",
  "rgb": {
    "r": 2,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 238.8,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.15785,
    "c": 0.09436,
    "h": 267.4
  },
  "luminance": 0.00326
}

Semantic roles & 50–950 ramp

primary
#020334
secondary
#78761A
accent
#FB29FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010007
muted
#77777A

Preview Lab

Preview with #020334

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

Preview Lab → · Contrast checker → · Palette generator →

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