#020331#020331

#020331 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.3% C 0.090 H 267.7°. Best body text is #FFFFFF at 19.81:1 contrast (WCAG AA passes).

Color values

HEX#020331
RGBrgb(2, 3, 49)
HSLhsl(239, 92%, 10%)
HSVhsv(239, 96%, 19%)
CMYKcmyk(95.9%, 93.9%, 0%, 80.8%)
CIE-LABlab(2.71, 13.39, -27.68)
CIE-LCHlch(2.71, 30.75, 295.82°)
OKLaboklab(15.32% -0.0036 -0.0901)
OKLCHoklch(15.32% 0.09 267.7)
XYZxyz(0.6118, 0.2997, 2.9307)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020331 #313002
analogous
#021B31 #020331 #180231
triadic
#020331 #310203 #033102
tetradic
#020331 #31021B #313002 #023118
square
#020331 #31021B #313002 #023118
split-complementary
#020331 #311802 #1B3102
monochromatic
#01021D #01021D #020331 #04076C #070AA7

Accessibility & contrast

On white

19.81
#020331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#020331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020331
19.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020331#FFFFFF#000000##FFFFFF
##0203311.0019.811.0619.81
#FFFFFF19.811.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C32
Deuteranopia (green-blind)
#000730
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #020331;
/* rgb */ color: rgb(2, 3, 49);
/* oklch */ color: oklch(15.3% 0.090 267.7);
Tailwind
colors: {
  custom: {
    50: '#4a4869',
    500: '#020331',
    950: '#000000',
  },
}
SCSS
$custom: #020331;
$custom-light: #4a4869;
$custom-dark: #000000;
JSON
{
  "hex": "#020331",
  "rgb": {
    "r": 2,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 238.723,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.15323,
    "c": 0.09015,
    "h": 267.7
  },
  "luminance": 0.003
}

Semantic roles & 50–950 ramp

primary
#020331
secondary
#757319
accent
#FA29FF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #020331

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

Preview Lab → · Contrast checker → · Palette generator →

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