#2F2388#2F2388

#2F2388 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.159 H 279.4°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#2F2388
RGBrgb(47, 35, 136)
HSLhsl(247, 59%, 34%)
HSVhsv(247, 74%, 53%)
CMYKcmyk(65.4%, 74.3%, 0%, 46.7%)
CIE-LABlab(22.24, 36.60, -54.29)
CIE-LCHlch(22.24, 65.47, 303.99°)
OKLaboklab(34.55% 0.026 -0.1567)
OKLCHoklch(34.55% 0.159 279.4)
XYZxyz(6.2158, 3.5835, 23.6519)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2388 #7C8823
analogous
#234988 #2F2388 #612388
triadic
#2F2388 #882F23 #23882F
tetradic
#2F2388 #882349 #7C8823 #238861
square
#2F2388 #882349 #7C8823 #238861
split-complementary
#2F2388 #886123 #498823
monochromatic
#0D0A27 #1E1657 #2F2388 #4030B9 #6253D3

Accessibility & contrast

On white

12.23
#2F2388 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F2388 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2388
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2388#FFFFFF#000000##FFFFFF
##2F23881.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2388;
/* rgb */ color: rgb(47, 35, 136);
/* oklch */ color: oklch(34.6% 0.159 279.4);
Tailwind
colors: {
  custom: {
    50: '#7460ac',
    500: '#2f2388',
    950: '#000000',
  },
}
SCSS
$custom: #2f2388;
$custom-light: #7460ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2388",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 136
  },
  "hsl": {
    "h": 247.129,
    "s": 59.064,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34553,
    "c": 0.15881,
    "h": 279.4
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#2F2388
secondary
#AAB750
accent
#E246D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2388

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

Preview Lab → · Contrast checker → · Palette generator →

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