#020231#020231

#020231 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.0% C 0.092 H 267.9°. Best body text is #FFFFFF at 19.89:1 contrast (WCAG AA passes).

Color values

HEX#020231
RGBrgb(2, 2, 49)
HSLhsl(240, 92%, 10%)
HSVhsv(240, 96%, 19%)
CMYKcmyk(95.9%, 95.9%, 0%, 80.8%)
CIE-LABlab(2.51, 13.79, -28.00)
CIE-LCHlch(2.51, 31.21, 296.22°)
OKLaboklab(15.04% -0.0034 -0.092)
OKLCHoklch(15.04% 0.092 267.9)
XYZxyz(0.6009, 0.2780, 2.9271)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020231 #313102
analogous
#021931 #020231 #190231
triadic
#020231 #310202 #023102
tetradic
#020231 #31021A #313102 #02311A
square
#020231 #31021A #313102 #02311A
split-complementary
#020231 #311902 #1A3102
monochromatic
#01011D #01011D #020231 #04046C #0707A7

Accessibility & contrast

On white

19.89
#020231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020231
19.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020231#FFFFFF#000000##FFFFFF
##0202311.0019.891.0619.89
#FFFFFF19.891.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #020231;
/* rgb */ color: rgb(2, 2, 49);
/* oklch */ color: oklch(15.0% 0.092 267.9);
Tailwind
colors: {
  custom: {
    50: '#494769',
    500: '#020231',
    950: '#000000',
  },
}
SCSS
$custom: #020231;
$custom-light: #494769;
$custom-dark: #000000;
JSON
{
  "hex": "#020231",
  "rgb": {
    "r": 2,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 240,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.15037,
    "c": 0.09207,
    "h": 267.9
  },
  "luminance": 0.00278
}

Semantic roles & 50–950 ramp

primary
#020231
secondary
#757519
accent
#FF29FF
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #020231

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

Preview Lab → · Contrast checker → · Palette generator →

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