#2F2FA3#2F2FA3

#2F2FA3 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.180 H 274.2°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#2F2FA3
RGBrgb(47, 47, 163)
HSLhsl(240, 55%, 41%)
HSVhsv(240, 71%, 64%)
CMYKcmyk(71.2%, 71.2%, 0%, 36.1%)
CIE-LABlab(27.52, 38.59, -62.23)
CIE-LCHlch(27.52, 73.22, 301.80°)
OKLaboklab(39.14% 0.0132 -0.1799)
OKLCHoklch(39.14% 0.18 274.2)
XYZxyz(8.7975, 5.2809, 35.1989)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FA3 #A3A32F
analogous
#2F69A3 #2F2FA3 #692FA3
triadic
#2F2FA3 #A32F2F #2FA32F
tetradic
#2F2FA3 #A32F69 #A3A32F #2FA369
square
#2F2FA3 #A32F69 #A3A32F #2FA369
split-complementary
#2F2FA3 #A3692F #69A32F
monochromatic
#141444 #212173 #2F2FA3 #4646CA #7575D7

Accessibility & contrast

On white

10.21
#2F2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F2FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FA3
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FA3#FFFFFF#000000##FFFFFF
##2F2FA31.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#003BA1
Tritanopia (blue-blind)
#004F65
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f2fa3;
/* rgb */ color: rgb(47, 47, 163);
/* oklch */ color: oklch(39.1% 0.180 274.2);
Tailwind
colors: {
  custom: {
    50: '#7968bf',
    500: '#2f2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fa3;
$custom-light: #7968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fa3",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 240,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.39138,
    "c": 0.18038,
    "h": 274.2
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#2F2FA3
secondary
#BFBF6F
accent
#DF49DF
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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