#2F2FA7#2F2FA7

#2F2FA7 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.185 H 273.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2F2FA7
RGBrgb(47, 47, 167)
HSLhsl(240, 56%, 42%)
HSVhsv(240, 72%, 65%)
CMYKcmyk(71.9%, 71.9%, 0%, 34.5%)
CIE-LABlab(27.92, 39.95, -63.99)
CIE-LCHlch(27.92, 75.44, 301.98°)
OKLaboklab(39.54% 0.0126 -0.185)
OKLCHoklch(39.54% 0.185 273.9)
XYZxyz(9.1615, 5.4265, 37.1163)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FA7 #A7A72F
analogous
#2F6BA7 #2F2FA7 #6B2FA7
triadic
#2F2FA7 #A72F2F #2FA72F
tetradic
#2F2FA7 #A72F6B #A7A72F #2FA76B
square
#2F2FA7 #A72F6B #A7A72F #2FA76B
split-complementary
#2F2FA7 #A76B2F #6BA72F
monochromatic
#141447 #222277 #2F2FA7 #4848CB #7878D9

Accessibility & contrast

On white

10.07
#2F2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FA7
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FA7#FFFFFF#000000##FFFFFF
##2F2FA71.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f2fa7;
/* rgb */ color: rgb(47, 47, 167);
/* oklch */ color: oklch(39.5% 0.185 273.9);
Tailwind
colors: {
  custom: {
    50: '#7a69c2',
    500: '#2f2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fa7;
$custom-light: #7a69c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fa7",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 240,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39542,
    "c": 0.18547,
    "h": 273.9
  },
  "luminance": 0.05427
}

Semantic roles & 50–950 ramp

primary
#2F2FA7
secondary
#C1C171
accent
#DF48DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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