#2F2FCA#2F2FCA

#2F2FCA is a dark, highly saturated blue. Relative luminance 0.069; OKLCH L 43.2% C 0.228 H 271.6°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#2F2FCA
RGBrgb(47, 47, 202)
HSLhsl(240, 62%, 49%)
HSVhsv(240, 77%, 79%)
CMYKcmyk(76.7%, 76.7%, 0%, 20.8%)
CIE-LABlab(31.58, 51.51, -78.70)
CIE-LCHlch(31.58, 94.06, 303.21°)
OKLaboklab(43.23% 0.0064 -0.2278)
OKLCHoklch(43.23% 0.228 271.6)
XYZxyz(12.8459, 6.9002, 56.5205)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FCA #CACA2F
analogous
#2F7DCA #2F2FCA #7D2FCA
triadic
#2F2FCA #CA2F2F #2FCA2F
tetradic
#2F2FCA #CA2F7D #CACA2F #2FCA7D
square
#2F2FCA #CA2F7D #CACA2F #2FCA7D
split-complementary
#2F2FCA #CA7D2F #7DCA2F
monochromatic
#181867 #232398 #2F2FCA #5D5DD9 #8F8FE5

Accessibility & contrast

On white

8.82
#2F2FCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2F2FCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FCA
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FCA#FFFFFF#000000##FFFFFF
##2F2FCA1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2fca;
/* rgb */ color: rgb(47, 47, 202);
/* oklch */ color: oklch(43.2% 0.228 271.6);
Tailwind
colors: {
  custom: {
    50: '#826adc',
    500: '#2f2fca',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fca;
$custom-light: #826adc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fca",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 202
  },
  "hsl": {
    "h": 240,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.43227,
    "c": 0.22794,
    "h": 271.6
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#2F2FCA
secondary
#CFCF86
accent
#E542E5
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #2F2FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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