#020229#020229

#020229 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.8% C 0.081 H 269.1°. Best body text is #FFFFFF at 20.13:1 contrast (WCAG AA passes).

Color values

HEX#020229
RGBrgb(2, 2, 41)
HSLhsl(240, 91%, 8%)
HSVhsv(240, 95%, 16%)
CMYKcmyk(95.1%, 95.1%, 0%, 83.9%)
CIE-LABlab(1.95, 9.88, -22.81)
CIE-LCHlch(1.95, 24.86, 293.41°)
OKLaboklab(13.77% -0.0013 -0.0808)
OKLCHoklch(13.77% 0.081 269.1)
XYZxyz(0.4468, 0.2164, 2.1156)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020229 #292902
analogous
#021529 #020229 #150229
triadic
#020229 #290202 #022902
tetradic
#020229 #290215 #292902 #022915
square
#020229 #290215 #292902 #022915
split-complementary
#020229 #291502 #152902
monochromatic
#01011D #01011D #020229 #050563 #08089E

Accessibility & contrast

On white

20.13
#020229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#020229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020229
20.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020229#FFFFFF#000000##FFFFFF
##0202291.0020.131.0420.13
#FFFFFF20.131.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00092A
Deuteranopia (green-blind)
#000528
Tritanopia (blue-blind)
#000C14
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #020229;
/* rgb */ color: rgb(2, 2, 41);
/* oklch */ color: oklch(13.8% 0.081 269.1);
Tailwind
colors: {
  custom: {
    50: '#484763',
    500: '#020229',
    950: '#000000',
  },
}
SCSS
$custom: #020229;
$custom-light: #484763;
$custom-dark: #000000;
JSON
{
  "hex": "#020229",
  "rgb": {
    "r": 2,
    "g": 2,
    "b": 41
  },
  "hsl": {
    "h": 240,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.13769,
    "c": 0.08078,
    "h": 269.1
  },
  "luminance": 0.00216
}

Semantic roles & 50–950 ramp

primary
#020229
secondary
#6E6E19
accent
#FF29FF
background
#F4F4F5
surface
#E6E6EA
border
#C2C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #020229

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

Preview Lab → · Contrast checker → · Palette generator →

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