#2F2186#2F2186

#2F2186 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.158 H 280.1°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#2F2186
RGBrgb(47, 33, 134)
HSLhsl(248, 60%, 33%)
HSVhsv(248, 75%, 53%)
CMYKcmyk(64.9%, 75.4%, 0%, 47.5%)
CIE-LABlab(21.63, 37.10, -54.05)
CIE-LCHlch(21.63, 65.56, 304.47°)
OKLaboklab(34.05% 0.0279 -0.1559)
OKLCHoklch(34.05% 0.158 280.1)
XYZxyz(6.0179, 3.4128, 22.8913)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2186 #788621
analogous
#214586 #2F2186 #612186
triadic
#2F2186 #862F21 #21862F
tetradic
#2F2186 #862145 #788621 #218661
square
#2F2186 #862145 #788621 #218661
split-complementary
#2F2186 #866121 #458621
monochromatic
#0D0924 #1E1555 #2F2186 #402DB7 #604ED3

Accessibility & contrast

On white

12.48
#2F2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2186
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2186#FFFFFF#000000##FFFFFF
##2F21861.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2186;
/* rgb */ color: rgb(47, 33, 134);
/* oklch */ color: oklch(34.1% 0.158 280.1);
Tailwind
colors: {
  custom: {
    50: '#745eaa',
    500: '#2f2186',
    950: '#000000',
  },
}
SCSS
$custom: #2f2186;
$custom-light: #745eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2186",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 248.317,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34053,
    "c": 0.15843,
    "h": 280.1
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#2F2186
secondary
#A8B74C
accent
#E444CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F2186

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

Preview Lab → · Contrast checker → · Palette generator →

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