#020AFF#020AFF

#020AFF is a mid, highly saturated blue. Relative luminance 0.074; OKLCH L 45.6% C 0.311 H 264.2°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#020AFF
RGBrgb(2, 10, 255)
HSLhsl(238, 100%, 50%)
HSVhsv(238, 99%, 100%)
CMYKcmyk(99.2%, 96.1%, 0%, 0%)
CIE-LABlab(32.80, 77.71, -107.01)
CIE-LCHlch(32.80, 132.25, 305.99°)
OKLaboklab(45.55% -0.0312 -0.3092)
OKLCHoklch(45.55% 0.311 264.2)
XYZxyz(18.1773, 7.4475, 95.0678)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020AFF #FFF702
analogous
#0288FF #020AFF #7902FF
triadic
#020AFF #FF020A #0AFF02
tetradic
#020AFF #FF0288 #FFF702 #02FF79
square
#020AFF #FF0288 #FFF702 #02FF79
split-complementary
#020AFF #FF7902 #88FF02
monochromatic
#000487 #0006C4 #020AFF #3F45FF #7C81FF

Accessibility & contrast

On white

8.43
#020AFF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#020AFF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020AFF
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020AFF#FFFFFF#000000##FFFFFF
##020AFF1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AFF
Deuteranopia (green-blind)
#003FFB
Tritanopia (blue-blind)
#006C96
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #020aff;
/* rgb */ color: rgb(2, 10, 255);
/* oklch */ color: oklch(45.6% 0.311 264.2);
Tailwind
colors: {
  custom: {
    50: '#8a5fff',
    500: '#020aff',
    950: '#000000',
  },
}
SCSS
$custom: #020aff;
$custom-light: #8a5fff;
$custom-dark: #000000;
JSON
{
  "hex": "#020aff",
  "rgb": {
    "r": 2,
    "g": 10,
    "b": 255
  },
  "hsl": {
    "h": 238.103,
    "s": 100,
    "l": 50.392
  },
  "oklch": {
    "l": 0.45551,
    "c": 0.3108,
    "h": 264.2
  },
  "luminance": 0.0745
}

Semantic roles & 50–950 ramp

primary
#020AFF
secondary
#E7E376
accent
#F829FF
background
#FAF6FF
surface
#F3EBFF
border
#CDC6D7
text
#0F0618
muted
#7F7A86

Preview Lab

Preview with #020AFF

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

Preview Lab → · Contrast checker → · Palette generator →

#020AFF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva