#2F2884#2F2884

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

Color values

HEX#2F2884
RGBrgb(47, 40, 132)
HSLhsl(245, 53%, 34%)
HSVhsv(245, 70%, 52%)
CMYKcmyk(64.4%, 69.7%, 0%, 48.2%)
CIE-LABlab(22.96, 32.21, -50.61)
CIE-LCHlch(22.96, 59.99, 302.48°)
OKLaboklab(34.94% 0.0229 -0.1459)
OKLCHoklch(34.94% 0.148 278.9)
XYZxyz(6.0946, 3.7874, 22.2352)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2884 #7D8428
analogous
#284F84 #2F2884 #5D2884
triadic
#2F2884 #842F28 #28842F
tetradic
#2F2884 #84284F #7D8428 #28845D
square
#2F2884 #84284F #7D8428 #28845D
split-complementary
#2F2884 #845D28 #4F8428
monochromatic
#0E0C26 #1E1A55 #2F2884 #4036B3 #625ACD

Accessibility & contrast

On white

11.95
#2F2884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2884
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2884#FFFFFF#000000##FFFFFF
##2F28841.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003382
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2884;
/* rgb */ color: rgb(47, 40, 132);
/* oklch */ color: oklch(34.9% 0.148 278.9);
Tailwind
colors: {
  custom: {
    50: '#7363a9',
    500: '#2f2884',
    950: '#000000',
  },
}
SCSS
$custom: #2f2884;
$custom-light: #7363a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2884",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 244.565,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34944,
    "c": 0.14769,
    "h": 278.9
  },
  "luminance": 0.03788
}

Semantic roles & 50–950 ramp

primary
#2F2884
secondary
#ABB256
accent
#DD4BD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2884

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

Preview Lab → · Contrast checker → · Palette generator →

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