#2F2FA5#2F2FA5

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

Color values

HEX#2F2FA5
RGBrgb(47, 47, 165)
HSLhsl(240, 56%, 42%)
HSVhsv(240, 72%, 65%)
CMYKcmyk(71.5%, 71.5%, 0%, 35.3%)
CIE-LABlab(27.72, 39.27, -63.11)
CIE-LCHlch(27.72, 74.33, 301.89°)
OKLaboklab(39.34% 0.0129 -0.1825)
OKLCHoklch(39.34% 0.183 274)
XYZxyz(8.9781, 5.3531, 36.1501)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FA5 #A5A52F
analogous
#2F6AA5 #2F2FA5 #6A2FA5
triadic
#2F2FA5 #A52F2F #2FA52F
tetradic
#2F2FA5 #A52F6A #A5A52F #2FA56A
square
#2F2FA5 #A52F6A #A5A52F #2FA56A
split-complementary
#2F2FA5 #A56A2F #6AA52F
monochromatic
#141446 #212175 #2F2FA5 #4747CB #7676D8

Accessibility & contrast

On white

10.14
#2F2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F2FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FA5
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FA5#FFFFFF#000000##FFFFFF
##2F2FA51.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003CA3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f2fa5;
/* rgb */ color: rgb(47, 47, 165);
/* oklch */ color: oklch(39.3% 0.183 274.0);
Tailwind
colors: {
  custom: {
    50: '#7968c1',
    500: '#2f2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fa5;
$custom-light: #7968c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fa5",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 240,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39339,
    "c": 0.18294,
    "h": 274
  },
  "luminance": 0.05354
}

Semantic roles & 50–950 ramp

primary
#2F2FA5
secondary
#C0C070
accent
#DF49DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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