#2A04FF#2A04FF

#2A04FF is a mid, highly saturated blue. Relative luminance 0.078; OKLCH L 46.3% C 0.305 H 268.8°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#2A04FF
RGBrgb(42, 4, 255)
HSLhsl(249, 100%, 51%)
HSVhsv(249, 98%, 100%)
CMYKcmyk(83.5%, 98.4%, 0%, 0%)
CIE-LABlab(33.56, 78.97, -105.73)
CIE-LCHlch(33.56, 131.96, 306.76°)
OKLaboklab(46.35% -0.0065 -0.3053)
OKLCHoklch(46.35% 0.305 268.8)
XYZxyz(19.0421, 7.7967, 95.0896)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A04FF #D9FF04
analogous
#045BFF #2A04FF #A804FF
triadic
#2A04FF #FF2A04 #04FF2A
tetradic
#2A04FF #FF045B #D9FF04 #04FFA8
square
#2A04FF #FF045B #D9FF04 #04FFA8
split-complementary
#2A04FF #FFA804 #5BFF04
monochromatic
#150089 #1E00C6 #2A04FF #5E41FF #927EFF

Accessibility & contrast

On white

8.20
#2A04FF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2A04FF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A04FF
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A04FF#FFFFFF#000000##FFFFFF
##2A04FF1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AFF
Deuteranopia (green-blind)
#0042FB
Tritanopia (blue-blind)
#006B96
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a04ff;
/* rgb */ color: rgb(42, 4, 255);
/* oklch */ color: oklch(46.3% 0.305 268.8);
Tailwind
colors: {
  custom: {
    50: '#8f5fff',
    500: '#2a04ff',
    950: '#000000',
  },
}
SCSS
$custom: #2a04ff;
$custom-light: #8f5fff;
$custom-dark: #000000;
JSON
{
  "hex": "#2a04ff",
  "rgb": {
    "r": 42,
    "g": 4,
    "b": 255
  },
  "hsl": {
    "h": 249.084,
    "s": 100,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46347,
    "c": 0.30537,
    "h": 268.8
  },
  "luminance": 0.07799
}

Semantic roles & 50–950 ramp

primary
#2A04FF
secondary
#D6E778
accent
#FF29DF
background
#FAF6FF
surface
#F4EBFF
border
#CEC6D7
text
#100618
muted
#7F7A86

Preview Lab

Preview with #2A04FF

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

Preview Lab → · Contrast checker → · Palette generator →

#2A04FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva