#2F2286#2F2286

#2F2286 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.157 H 280.0°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#2F2286
RGBrgb(47, 34, 134)
HSLhsl(248, 60%, 33%)
HSVhsv(248, 75%, 53%)
CMYKcmyk(64.9%, 74.6%, 0%, 47.5%)
CIE-LABlab(21.83, 36.52, -53.71)
CIE-LCHlch(21.83, 64.95, 304.21°)
OKLaboklab(34.2% 0.0272 -0.155)
OKLCHoklch(34.2% 0.157 280)
XYZxyz(6.0460, 3.4692, 22.9006)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2286 #798622
analogous
#224786 #2F2286 #612286
triadic
#2F2286 #862F22 #22862F
tetradic
#2F2286 #862247 #798622 #228661
square
#2F2286 #862247 #798622 #228661
split-complementary
#2F2286 #866122 #478622
monochromatic
#0D0924 #1E1655 #2F2286 #402EB7 #6150D3

Accessibility & contrast

On white

12.40
#2F2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2286
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2286#FFFFFF#000000##FFFFFF
##2F22861.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003084
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f2286;
/* rgb */ color: rgb(47, 34, 134);
/* oklch */ color: oklch(34.2% 0.157 280.0);
Tailwind
colors: {
  custom: {
    50: '#735faa',
    500: '#2f2286',
    950: '#000000',
  },
}
SCSS
$custom: #2f2286;
$custom-light: #735faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2286",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 247.8,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34199,
    "c": 0.15734,
    "h": 280
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#2F2286
secondary
#A8B64E
accent
#E345CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2286

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

Preview Lab → · Contrast checker → · Palette generator →

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