#2F2FA9#2F2FA9

#2F2FA9 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.188 H 273.8°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#2F2FA9
RGBrgb(47, 47, 169)
HSLhsl(240, 56%, 42%)
HSVhsv(240, 72%, 66%)
CMYKcmyk(72.2%, 72.2%, 0%, 33.7%)
CIE-LABlab(28.12, 40.64, -64.87)
CIE-LCHlch(28.12, 76.55, 302.06°)
OKLaboklab(39.75% 0.0123 -0.1876)
OKLCHoklch(39.75% 0.188 273.8)
XYZxyz(9.3478, 5.5010, 38.0976)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FA9 #A9A92F
analogous
#2F6CA9 #2F2FA9 #6C2FA9
triadic
#2F2FA9 #A92F2F #2FA92F
tetradic
#2F2FA9 #A92F6C #A9A92F #2FA96C
square
#2F2FA9 #A92F6C #A9A92F #2FA96C
split-complementary
#2F2FA9 #A96C2F #6CA92F
monochromatic
#141449 #222279 #2F2FA9 #4949CC #7979DA

Accessibility & contrast

On white

10.00
#2F2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2F2FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FA9
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FA9#FFFFFF#000000##FFFFFF
##2F2FA91.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003CA7
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f2fa9;
/* rgb */ color: rgb(47, 47, 169);
/* oklch */ color: oklch(39.7% 0.188 273.8);
Tailwind
colors: {
  custom: {
    50: '#7a69c4',
    500: '#2f2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fa9;
$custom-light: #7a69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fa9",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 240,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39745,
    "c": 0.188,
    "h": 273.8
  },
  "luminance": 0.05502
}

Semantic roles & 50–950 ramp

primary
#2F2FA9
secondary
#C2C272
accent
#E048E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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