#2F2FB6#2F2FB6

#2F2FB6 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.1% C 0.204 H 272.8°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2F2FB6
RGBrgb(47, 47, 182)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 71%)
CMYKcmyk(74.2%, 74.2%, 0%, 28.6%)
CIE-LABlab(29.45, 45.00, -70.45)
CIE-LCHlch(29.45, 83.60, 302.57°)
OKLaboklab(41.09% 0.0101 -0.2039)
OKLCHoklch(41.09% 0.204 272.8)
XYZxyz(10.6295, 6.0137, 44.8475)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FB6 #B6B62F
analogous
#2F73B6 #2F2FB6 #732FB6
triadic
#2F2FB6 #B62F2F #2FB62F
tetradic
#2F2FB6 #B62F73 #B6B62F #2FB673
square
#2F2FB6 #B62F73 #B6B62F #2FB673
split-complementary
#2F2FB6 #B6732F #73B62F
monochromatic
#161655 #222285 #2F2FB6 #5050D2 #8181DE

Accessibility & contrast

On white

9.53
#2F2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F2FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FB6
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FB6#FFFFFF#000000##FFFFFF
##2F2FB61.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBA
Deuteranopia (green-blind)
#003FB4
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f2fb6;
/* rgb */ color: rgb(47, 47, 182);
/* oklch */ color: oklch(41.1% 0.204 272.8);
Tailwind
colors: {
  custom: {
    50: '#7d69cd',
    500: '#2f2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fb6;
$custom-light: #7d69cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fb6",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 240,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41091,
    "c": 0.20411,
    "h": 272.8
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#2F2FB6
secondary
#C7C779
accent
#E246E2
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2F2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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