#2F2989#2F2989

#2F2989 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.153 H 278.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#2F2989
RGBrgb(47, 41, 137)
HSLhsl(244, 54%, 35%)
HSVhsv(244, 70%, 54%)
CMYKcmyk(65.7%, 70.1%, 0%, 46.3%)
CIE-LABlab(23.66, 33.31, -52.59)
CIE-LCHlch(23.66, 62.25, 302.35°)
OKLaboklab(35.6% 0.0213 -0.1517)
OKLCHoklch(35.6% 0.153 278)
XYZxyz(6.4791, 3.9958, 24.0919)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2989 #838929
analogous
#295389 #2F2989 #5F2989
triadic
#2F2989 #892F29 #29892F
tetradic
#2F2989 #892953 #838929 #29895F
square
#2F2989 #892953 #838929 #29895F
split-complementary
#2F2989 #895F29 #538929
monochromatic
#0F0D2B #1F1B5A #2F2989 #3F37B8 #655ECF

Accessibility & contrast

On white

11.67
#2F2989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F2989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2989
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2989#FFFFFF#000000##FFFFFF
##2F29891.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2989;
/* rgb */ color: rgb(47, 41, 137);
/* oklch */ color: oklch(35.6% 0.153 278.0);
Tailwind
colors: {
  custom: {
    50: '#7363ac',
    500: '#2f2989',
    950: '#000000',
  },
}
SCSS
$custom: #2f2989;
$custom-light: #7363ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2989",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 137
  },
  "hsl": {
    "h": 243.75,
    "s": 53.933,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35595,
    "c": 0.1532,
    "h": 278
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#2F2989
secondary
#AFB45A
accent
#DD4AD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2989

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

Preview Lab → · Contrast checker → · Palette generator →

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