#2F2FB4#2F2FB4

#2F2FB4 is a dark, highly saturated blue. Relative luminance 0.059; OKLCH L 40.9% C 0.202 H 273.0°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2F2FB4
RGBrgb(47, 47, 180)
HSLhsl(240, 59%, 45%)
HSVhsv(240, 74%, 71%)
CMYKcmyk(73.9%, 73.9%, 0%, 29.4%)
CIE-LABlab(29.24, 44.34, -69.60)
CIE-LCHlch(29.24, 82.53, 302.50°)
OKLaboklab(40.88% 0.0104 -0.2014)
OKLCHoklch(40.88% 0.202 273)
XYZxyz(10.4243, 5.9316, 43.7667)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2FB4 #B4B42F
analogous
#2F72B4 #2F2FB4 #722FB4
triadic
#2F2FB4 #B42F2F #2FB42F
tetradic
#2F2FB4 #B42F72 #B4B42F #2FB472
square
#2F2FB4 #B42F72 #B4B42F #2FB472
split-complementary
#2F2FB4 #B4722F #72B42F
monochromatic
#161653 #222283 #2F2FB4 #4F4FD1 #8080DE

Accessibility & contrast

On white

9.60
#2F2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2FB4
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2FB4#FFFFFF#000000##FFFFFF
##2F2FB41.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#003EB2
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f2fb4;
/* rgb */ color: rgb(47, 47, 180);
/* oklch */ color: oklch(40.9% 0.202 273.0);
Tailwind
colors: {
  custom: {
    50: '#7d69cc',
    500: '#2f2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f2fb4;
$custom-light: #7d69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2fb4",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 240,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40881,
    "c": 0.20167,
    "h": 273
  },
  "luminance": 0.05933
}

Semantic roles & 50–950 ramp

primary
#2F2FB4
secondary
#C7C778
accent
#E246E2
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #2F2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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