#2F2FA6#2F2FA6

#2F2FA6 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.4% C 0.184 H 274.0°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#2F2FA6
RGBrgb(47, 47, 166)
HSLhsl(240, 56%, 42%)
HSVhsv(240, 72%, 65%)
CMYKcmyk(71.7%, 71.7%, 0%, 34.9%)
CIE-LABlab(27.82, 39.61, -63.55)
CIE-LCHlch(27.82, 74.89, 301.94°)
OKLaboklab(39.44% 0.0128 -0.1838)
OKLCHoklch(39.44% 0.184 274)
XYZxyz(9.0694, 5.3897, 36.6313)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FA6 #A6A62F
analogous
#2F6BA6 #2F2FA6 #6B2FA6
triadic
#2F2FA6 #A62F2F #2FA62F
tetradic
#2F2FA6 #A62F6B #A6A62F #2FA66B
square
#2F2FA6 #A62F6B #A6A62F #2FA66B
split-complementary
#2F2FA6 #A66B2F #6BA62F
monochromatic
#141447 #212176 #2F2FA6 #4747CB #7777D8

Accessibility & contrast

On white

10.10
#2F2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FA6
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FA6#FFFFFF#000000##FFFFFF
##2F2FA61.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003CA4
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f2fa6;
/* rgb */ color: rgb(47, 47, 166);
/* oklch */ color: oklch(39.4% 0.184 274.0);
Tailwind
colors: {
  custom: {
    50: '#7969c2',
    500: '#2f2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fa6;
$custom-light: #7969c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fa6",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 240,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.3944,
    "c": 0.1842,
    "h": 274
  },
  "luminance": 0.05391
}

Semantic roles & 50–950 ramp

primary
#2F2FA6
secondary
#C1C170
accent
#DF49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #2F2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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