#2F2A82#2F2A82

#2F2A82 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.142 H 278.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#2F2A82
RGBrgb(47, 42, 130)
HSLhsl(243, 51%, 34%)
HSVhsv(243, 68%, 51%)
CMYKcmyk(63.8%, 67.7%, 0%, 49%)
CIE-LABlab(23.24, 30.25, -48.88)
CIE-LCHlch(23.24, 57.49, 301.75°)
OKLaboklab(35.09% 0.0214 -0.1408)
OKLCHoklch(35.09% 0.142 278.6)
XYZxyz(6.0282, 3.8715, 21.5444)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A82 #7D822A
analogous
#2A5182 #2F2A82 #5B2A82
triadic
#2F2A82 #822F2A #2A822F
tetradic
#2F2A82 #822A51 #7D822A #2A825B
square
#2F2A82 #822A51 #7D822A #2A825B
split-complementary
#2F2A82 #825B2A #51822A
monochromatic
#0E0C25 #1E1B54 #2F2A82 #4039B0 #625CCA

Accessibility & contrast

On white

11.83
#2F2A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F2A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A82
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A82#FFFFFF#000000##FFFFFF
##2F2A821.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003480
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2a82;
/* rgb */ color: rgb(47, 42, 130);
/* oklch */ color: oklch(35.1% 0.142 278.6);
Tailwind
colors: {
  custom: {
    50: '#7264a7',
    500: '#2f2a82',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a82;
$custom-light: #7264a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a82",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 130
  },
  "hsl": {
    "h": 243.409,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35094,
    "c": 0.14247,
    "h": 278.6
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2A82

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

Preview Lab → · Contrast checker → · Palette generator →

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