#2F2C82#2F2C82

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

Color values

HEX#2F2C82
RGBrgb(47, 44, 130)
HSLhsl(242, 49%, 34%)
HSVhsv(242, 66%, 51%)
CMYKcmyk(63.8%, 66.2%, 0%, 49%)
CIE-LABlab(23.73, 28.96, -48.09)
CIE-LCHlch(23.73, 56.14, 301.05°)
OKLaboklab(35.45% 0.0196 -0.1385)
OKLCHoklch(35.45% 0.14 278.1)
XYZxyz(6.1009, 4.0169, 21.5686)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2C82 #7F822C
analogous
#2C5482 #2F2C82 #5A2C82
triadic
#2F2C82 #822F2C #2C822F
tetradic
#2F2C82 #822C54 #7F822C #2C825A
square
#2F2C82 #822C54 #7F822C #2C825A
split-complementary
#2F2C82 #825A2C #54822C
monochromatic
#0E0D27 #1E1D54 #2F2C82 #403BB0 #635FC9

Accessibility & contrast

On white

11.64
#2F2C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2C82
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2C82#FFFFFF#000000##FFFFFF
##2F2C821.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2c82;
/* rgb */ color: rgb(47, 44, 130);
/* oklch */ color: oklch(35.4% 0.140 278.1);
Tailwind
colors: {
  custom: {
    50: '#7265a7',
    500: '#2f2c82',
    950: '#000000',
  },
}
SCSS
$custom: #2f2c82;
$custom-light: #7265a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2c82",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 242.093,
    "s": 49.425,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35447,
    "c": 0.13989,
    "h": 278.1
  },
  "luminance": 0.04017
}

Semantic roles & 50–950 ramp

primary
#2F2C82
secondary
#ACAF5B
accent
#D94FD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #2F2C82

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

Preview Lab → · Contrast checker → · Palette generator →

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