#2F2D82#2F2D82

#2F2D82 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.139 H 277.8°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#2F2D82
RGBrgb(47, 45, 130)
HSLhsl(241, 49%, 34%)
HSVhsv(241, 65%, 51%)
CMYKcmyk(63.8%, 65.4%, 0%, 49%)
CIE-LABlab(23.97, 28.30, -47.69)
CIE-LCHlch(23.97, 55.46, 300.69°)
OKLaboklab(35.63% 0.0187 -0.1373)
OKLCHoklch(35.63% 0.139 277.8)
XYZxyz(6.1386, 4.0923, 21.5812)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D82 #80822D
analogous
#2D5682 #2F2D82 #5A2D82
triadic
#2F2D82 #822F2D #2D822F
tetradic
#2F2D82 #822D56 #80822D #2D825A
square
#2F2D82 #822D56 #80822D #2D825A
split-complementary
#2F2D82 #825A2D #56822D
monochromatic
#0E0E27 #1F1D55 #2F2D82 #3F3DAF #6461C8

Accessibility & contrast

On white

11.55
#2F2D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F2D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D82
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D82#FFFFFF#000000##FFFFFF
##2F2D821.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#003580
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2d82;
/* rgb */ color: rgb(47, 45, 130);
/* oklch */ color: oklch(35.6% 0.139 277.8);
Tailwind
colors: {
  custom: {
    50: '#7266a7',
    500: '#2f2d82',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d82;
$custom-light: #7266a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d82",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 241.412,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35627,
    "c": 0.1386,
    "h": 277.8
  },
  "luminance": 0.04093
}

Semantic roles & 50–950 ramp

primary
#2F2D82
secondary
#ADAF5C
accent
#D850D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #2F2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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