#2F2C81#2F2C81

#2F2C81 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.139 H 278.2°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2F2C81
RGBrgb(47, 44, 129)
HSLhsl(242, 49%, 34%)
HSVhsv(242, 66%, 51%)
CMYKcmyk(63.6%, 65.9%, 0%, 49.4%)
CIE-LABlab(23.64, 28.60, -47.61)
CIE-LCHlch(23.64, 55.54, 301.00°)
OKLaboklab(35.35% 0.0197 -0.1371)
OKLCHoklch(35.35% 0.139 278.2)
XYZxyz(6.0341, 3.9902, 21.2168)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C81 #7E812C
analogous
#2C5481 #2F2C81 #5A2C81
triadic
#2F2C81 #812F2C #2C812F
tetradic
#2F2C81 #812C54 #7E812C #2C815A
square
#2F2C81 #812C54 #7E812C #2C815A
split-complementary
#2F2C81 #815A2C #54812C
monochromatic
#0E0D26 #1E1C53 #2F2C81 #403CAF #635FC8

Accessibility & contrast

On white

11.68
#2F2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2C81
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C81#FFFFFF#000000##FFFFFF
##2F2C811.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2c81;
/* rgb */ color: rgb(47, 44, 129);
/* oklch */ color: oklch(35.4% 0.139 278.2);
Tailwind
colors: {
  custom: {
    50: '#7265a6',
    500: '#2f2c81',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c81;
$custom-light: #7265a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c81",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 242.118,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35355,
    "c": 0.1385,
    "h": 278.2
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#2F2C81
secondary
#ACAF5A
accent
#D94FD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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