#2F2889#2F2889

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

Color values

HEX#2F2889
RGBrgb(47, 40, 137)
HSLhsl(244, 55%, 35%)
HSVhsv(244, 71%, 54%)
CMYKcmyk(65.7%, 70.8%, 0%, 46.3%)
CIE-LABlab(23.43, 33.93, -52.96)
CIE-LCHlch(23.43, 62.90, 302.65°)
OKLaboklab(35.43% 0.0221 -0.1528)
OKLCHoklch(35.43% 0.154 278.2)
XYZxyz(6.4450, 3.9275, 24.0805)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2889 #828928
analogous
#285289 #2F2889 #602889
triadic
#2F2889 #892F28 #28892F
tetradic
#2F2889 #892852 #828928 #288960
square
#2F2889 #892852 #828928 #288960
split-complementary
#2F2889 #896028 #528928
monochromatic
#0E0C2A #1F1A5A #2F2889 #3F36B8 #645CCF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F2889#FFFFFF#000000##FFFFFF
##2F28891.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)
#003C8C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2889;
/* rgb */ color: rgb(47, 40, 137);
/* oklch */ color: oklch(35.4% 0.154 278.2);
Tailwind
colors: {
  custom: {
    50: '#7463ac',
    500: '#2f2889',
    950: '#000000',
  },
}
SCSS
$custom: #2f2889;
$custom-light: #7463ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2889",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 137
  },
  "hsl": {
    "h": 244.33,
    "s": 54.802,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35431,
    "c": 0.15439,
    "h": 278.2
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#2F2889
secondary
#AEB558
accent
#DE4AD3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2889

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

Preview Lab → · Contrast checker → · Palette generator →

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