#2F2A84#2F2A84

#2F2A84 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.145 H 278.4°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2F2A84
RGBrgb(47, 42, 132)
HSLhsl(243, 52%, 34%)
HSVhsv(243, 68%, 52%)
CMYKcmyk(64.4%, 68.2%, 0%, 48.2%)
CIE-LABlab(23.42, 30.95, -49.84)
CIE-LCHlch(23.42, 58.67, 301.84°)
OKLaboklab(35.28% 0.0212 -0.1437)
OKLCHoklch(35.28% 0.145 278.4)
XYZxyz(6.1638, 3.9257, 22.2582)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A84 #7F842A
analogous
#2A5284 #2F2A84 #5C2A84
triadic
#2F2A84 #842F2A #2A842F
tetradic
#2F2A84 #842A52 #7F842A #2A845C
square
#2F2A84 #842A52 #7F842A #2A845C
split-complementary
#2F2A84 #845C2A #52842A
monochromatic
#0E0C27 #1E1B56 #2F2A84 #4039B2 #635DCB

Accessibility & contrast

On white

11.76
#2F2A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F2A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A84
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A84#FFFFFF#000000##FFFFFF
##2F2A841.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B87
Deuteranopia (green-blind)
#003482
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2a84;
/* rgb */ color: rgb(47, 42, 132);
/* oklch */ color: oklch(35.3% 0.145 278.4);
Tailwind
colors: {
  custom: {
    50: '#7264a9',
    500: '#2f2a84',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a84;
$custom-light: #7264a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a84",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 243.333,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35283,
    "c": 0.14521,
    "h": 278.4
  },
  "luminance": 0.03926
}

Semantic roles & 50–950 ramp

primary
#2F2A84
secondary
#ACB159
accent
#DB4DD3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2A84

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

Preview Lab → · Contrast checker → · Palette generator →

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