#2F2389#2F2389

#2F2389 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.160 H 279.3°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#2F2389
RGBrgb(47, 35, 137)
HSLhsl(247, 59%, 34%)
HSVhsv(247, 74%, 54%)
CMYKcmyk(65.7%, 74.5%, 0%, 46.3%)
CIE-LABlab(22.34, 36.93, -54.75)
CIE-LCHlch(22.34, 66.04, 304.00°)
OKLaboklab(34.66% 0.0258 -0.158)
OKLCHoklch(34.66% 0.16 279.3)
XYZxyz(6.2872, 3.6120, 24.0279)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2389 #7D8923
analogous
#234A89 #2F2389 #622389
triadic
#2F2389 #892F23 #23892F
tetradic
#2F2389 #89234A #7D8923 #238962
square
#2F2389 #89234A #7D8923 #238962
split-complementary
#2F2389 #896223 #4A8923
monochromatic
#0E0A28 #1E1758 #2F2389 #402FBA #6253D3

Accessibility & contrast

On white

12.19
#2F2389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2389
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2389#FFFFFF#000000##FFFFFF
##2F23891.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2389;
/* rgb */ color: rgb(47, 35, 137);
/* oklch */ color: oklch(34.7% 0.160 279.3);
Tailwind
colors: {
  custom: {
    50: '#7460ac',
    500: '#2f2389',
    950: '#000000',
  },
}
SCSS
$custom: #2f2389;
$custom-light: #7460ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2389",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 137
  },
  "hsl": {
    "h": 247.059,
    "s": 59.302,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34655,
    "c": 0.1601,
    "h": 279.3
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#2F2389
secondary
#ABB751
accent
#E245D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2389

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

Preview Lab → · Contrast checker → · Palette generator →

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