#2A2FCA#2A2FCA

#2A2FCA is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 43.0% C 0.229 H 270.3°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#2A2FCA
RGBrgb(42, 47, 202)
HSLhsl(238, 66%, 48%)
HSVhsv(238, 79%, 79%)
CMYKcmyk(79.2%, 76.7%, 0%, 20.8%)
CIE-LABlab(31.32, 51.17, -79.14)
CIE-LCHlch(31.32, 94.24, 302.89°)
OKLaboklab(42.97% 0.0011 -0.2292)
OKLCHoklch(42.97% 0.229 270.3)
XYZxyz(12.6284, 6.7881, 56.5103)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2FCA #CAC52A
analogous
#2A7FCA #2A2FCA #752ACA
triadic
#2A2FCA #CA2A2F #2FCA2A
tetradic
#2A2FCA #CA2A7F #CAC52A #2ACA75
square
#2A2FCA #CA2A7F #CAC52A #2ACA75
split-complementary
#2A2FCA #CA752A #7FCA2A
monochromatic
#151765 #1F2397 #2A2FCA #555ADC #888BE6

Accessibility & contrast

On white

8.91
#2A2FCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2A2FCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2FCA
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2FCA#FFFFFF#000000##FFFFFF
##2A2FCA1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CE
Deuteranopia (green-blind)
#0041C7
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a2fca;
/* rgb */ color: rgb(42, 47, 202);
/* oklch */ color: oklch(43.0% 0.229 270.3);
Tailwind
colors: {
  custom: {
    50: '#806adc',
    500: '#2a2fca',
    950: '#000000',
  },
}
SCSS
$custom: #2a2fca;
$custom-light: #806adc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2fca",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 238.125,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.42974,
    "c": 0.22921,
    "h": 270.3
  },
  "luminance": 0.0679
}

Semantic roles & 50–950 ramp

primary
#2A2FCA
secondary
#D0CD80
accent
#E33FE9
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2A2FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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