#020127#020127

#020127 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.1% C 0.080 H 269.8°. Best body text is #FFFFFF at 20.27:1 contrast (WCAG AA passes).

Color values

HEX#020127
RGBrgb(2, 1, 39)
HSLhsl(242, 95%, 8%)
HSVhsv(242, 97%, 15%)
CMYKcmyk(94.9%, 97.4%, 0%, 84.7%)
CIE-LABlab(1.64, 9.42, -21.77)
CIE-LCHlch(1.64, 23.72, 293.40°)
OKLaboklab(13.08% -0.0003 -0.0804)
OKLCHoklch(13.08% 0.08 269.8)
XYZxyz(0.4020, 0.1810, 1.9328)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020127 #262701
analogous
#011327 #020127 #150127
triadic
#020127 #270201 #012702
tetradic
#020127 #270113 #262701 #012715
square
#020127 #270113 #262701 #012715
split-complementary
#020127 #271501 #132701
monochromatic
#02011E #02011E #020127 #050363 #08049E

Accessibility & contrast

On white

20.27
#020127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020127
20.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020127#FFFFFF#000000##FFFFFF
##0201271.0020.271.0420.27
#FFFFFF20.271.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000828
Deuteranopia (green-blind)
#000426
Tritanopia (blue-blind)
#000B13
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #020127;
/* rgb */ color: rgb(2, 1, 39);
/* oklch */ color: oklch(13.1% 0.080 269.8);
Tailwind
colors: {
  custom: {
    50: '#474761',
    500: '#020127',
    950: '#000000',
  },
}
SCSS
$custom: #020127;
$custom-light: #474761;
$custom-dark: #000000;
JSON
{
  "hex": "#020127",
  "rgb": {
    "r": 2,
    "g": 1,
    "b": 39
  },
  "hsl": {
    "h": 241.579,
    "s": 95,
    "l": 7.843
  },
  "oklch": {
    "l": 0.13082,
    "c": 0.08038,
    "h": 269.8
  },
  "luminance": 0.00181
}

Semantic roles & 50–950 ramp

primary
#020127
secondary
#6B6E16
accent
#FF29F9
background
#F4F3F5
surface
#E6E5EA
border
#C2C1C6
text
#000005
muted
#777779

Preview Lab

Preview with #020127

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

Preview Lab → · Contrast checker → · Palette generator →

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