#2F2FD3#2F2FD3

#2F2FD3 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 44.2% C 0.238 H 271.1°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#2F2FD3
RGBrgb(47, 47, 211)
HSLhsl(240, 65%, 51%)
HSVhsv(240, 78%, 83%)
CMYKcmyk(77.7%, 77.7%, 0%, 17.3%)
CIE-LABlab(32.57, 54.36, -82.30)
CIE-LCHlch(32.57, 98.63, 303.44°)
OKLaboklab(44.21% 0.0046 -0.2383)
OKLCHoklch(44.21% 0.238 271.1)
XYZxyz(13.9427, 7.3390, 62.2971)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FD3 #D3D32F
analogous
#2F81D3 #2F2FD3 #812FD3
triadic
#2F2FD3 #D32F2F #2FD32F
tetradic
#2F2FD3 #D32F81 #D3D32F #2FD381
square
#2F2FD3 #D32F81 #D3D32F #2FD381
split-complementary
#2F2FD3 #D3812F #81D32F
monochromatic
#181870 #2222A2 #2F2FD3 #6262DE #9494E8

Accessibility & contrast

On white

8.51
#2F2FD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F2FD3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FD3
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FD3#FFFFFF#000000##FFFFFF
##2F2FD31.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D8
Deuteranopia (green-blind)
#0044D0
Tritanopia (blue-blind)
#006181
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f2fd3;
/* rgb */ color: rgb(47, 47, 211);
/* oklch */ color: oklch(44.2% 0.238 271.1);
Tailwind
colors: {
  custom: {
    50: '#846be2',
    500: '#2f2fd3',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fd3;
$custom-light: #846be2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fd3",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 211
  },
  "hsl": {
    "h": 240,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4421,
    "c": 0.23833,
    "h": 271.1
  },
  "luminance": 0.07341
}

Semantic roles & 50–950 ramp

primary
#2F2FD3
secondary
#D3D38A
accent
#E840E8
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0716
muted
#7E7A84

Preview Lab

Preview with #2F2FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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