#2F2A80#2F2A80

#2F2A80 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.140 H 278.9°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#2F2A80
RGBrgb(47, 42, 128)
HSLhsl(243, 51%, 33%)
HSVhsv(243, 67%, 50%)
CMYKcmyk(63.3%, 67.2%, 0%, 49.8%)
CIE-LABlab(23.06, 29.55, -47.92)
CIE-LCHlch(23.06, 56.30, 301.66°)
OKLaboklab(34.91% 0.0216 -0.138)
OKLCHoklch(34.91% 0.14 278.9)
XYZxyz(5.8953, 3.8183, 20.8442)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A80 #7B802A
analogous
#2A5080 #2F2A80 #5A2A80
triadic
#2F2A80 #802F2A #2A802F
tetradic
#2F2A80 #802A50 #7B802A #2A805A
square
#2F2A80 #802A50 #7B802A #2A805A
split-complementary
#2F2A80 #805A2A #50802A
monochromatic
#0D0C24 #1E1B52 #2F2A80 #4039AE #625BC9

Accessibility & contrast

On white

11.91
#2F2A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F2A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A80
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A80#FFFFFF#000000##FFFFFF
##2F2A801.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2a80;
/* rgb */ color: rgb(47, 42, 128);
/* oklch */ color: oklch(34.9% 0.140 278.9);
Tailwind
colors: {
  custom: {
    50: '#7164a6',
    500: '#2f2a80',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a80;
$custom-light: #7164a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a80",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 243.488,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34907,
    "c": 0.1397,
    "h": 278.9
  },
  "luminance": 0.03819
}

Semantic roles & 50–950 ramp

primary
#2F2A80
secondary
#AAAF57
accent
#DA4ED2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2F2A80

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

Preview Lab → · Contrast checker → · Palette generator →

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