#2F2FC8#2F2FC8

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

Color values

HEX#2F2FC8
RGBrgb(47, 47, 200)
HSLhsl(240, 62%, 48%)
HSVhsv(240, 77%, 78%)
CMYKcmyk(76.5%, 76.5%, 0%, 21.6%)
CIE-LABlab(31.36, 50.87, -77.89)
CIE-LCHlch(31.36, 93.04, 303.15°)
OKLaboklab(43.01% 0.0068 -0.2255)
OKLCHoklch(43.01% 0.226 271.7)
XYZxyz(12.6106, 6.8061, 55.2815)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FC8 #C8C82F
analogous
#2F7BC8 #2F2FC8 #7B2FC8
triadic
#2F2FC8 #C82F2F #2FC82F
tetradic
#2F2FC8 #C82F7B #C8C82F #2FC87B
square
#2F2FC8 #C82F7B #C8C82F #2FC87B
split-complementary
#2F2FC8 #C87B2F #7BC82F
monochromatic
#181865 #232396 #2F2FC8 #5C5CD9 #8D8DE4

Accessibility & contrast

On white

8.89
#2F2FC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2FC8
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FC8#FFFFFF#000000##FFFFFF
##2F2FC81.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051CC
Deuteranopia (green-blind)
#0042C5
Tritanopia (blue-blind)
#005D7A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2f2fc8;
/* rgb */ color: rgb(47, 47, 200);
/* oklch */ color: oklch(43.0% 0.226 271.7);
Tailwind
colors: {
  custom: {
    50: '#816ada',
    500: '#2f2fc8',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fc8;
$custom-light: #816ada;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fc8",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 200
  },
  "hsl": {
    "h": 240,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4301,
    "c": 0.2256,
    "h": 271.7
  },
  "luminance": 0.06807
}

Semantic roles & 50–950 ramp

primary
#2F2FC8
secondary
#CFCF84
accent
#E543E5
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2F2FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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