#2F2988#2F2988

#2F2988 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.152 H 278.1°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#2F2988
RGBrgb(47, 41, 136)
HSLhsl(244, 54%, 35%)
HSVhsv(244, 70%, 53%)
CMYKcmyk(65.4%, 69.9%, 0%, 46.7%)
CIE-LABlab(23.56, 32.97, -52.12)
CIE-LCHlch(23.56, 61.67, 302.31°)
OKLaboklab(35.5% 0.0215 -0.1503)
OKLCHoklch(35.5% 0.152 278.1)
XYZxyz(6.4077, 3.9673, 23.7159)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2988 #828829
analogous
#295388 #2F2988 #5E2988
triadic
#2F2988 #882F29 #29882F
tetradic
#2F2988 #882953 #828829 #29885E
square
#2F2988 #882953 #828829 #29885E
split-complementary
#2F2988 #885E29 #538829
monochromatic
#0E0D2A #1F1B59 #2F2988 #3F37B7 #645DCE

Accessibility & contrast

On white

11.71
#2F2988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2988
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2988#FFFFFF#000000##FFFFFF
##2F29881.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2988;
/* rgb */ color: rgb(47, 41, 136);
/* oklch */ color: oklch(35.5% 0.152 278.1);
Tailwind
colors: {
  custom: {
    50: '#7363ac',
    500: '#2f2988',
    950: '#000000',
  },
}
SCSS
$custom: #2f2988;
$custom-light: #7363ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2988",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 136
  },
  "hsl": {
    "h": 243.789,
    "s": 53.672,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35497,
    "c": 0.15186,
    "h": 278.1
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#2F2988
secondary
#AEB459
accent
#DD4BD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2988

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

Preview Lab → · Contrast checker → · Palette generator →

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