#2F2185#2F2185

#2F2185 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.157 H 280.3°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2F2185
RGBrgb(47, 33, 133)
HSLhsl(248, 60%, 33%)
HSVhsv(248, 75%, 52%)
CMYKcmyk(64.7%, 75.2%, 0%, 47.8%)
CIE-LABlab(21.52, 36.77, -53.59)
CIE-LCHlch(21.52, 64.99, 304.46°)
OKLaboklab(33.95% 0.0281 -0.1546)
OKLCHoklch(33.95% 0.157 280.3)
XYZxyz(5.9484, 3.3851, 22.5257)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2185 #778521
analogous
#214585 #2F2185 #612185
triadic
#2F2185 #852F21 #21852F
tetradic
#2F2185 #852145 #778521 #218561
square
#2F2185 #852145 #778521 #218561
split-complementary
#2F2185 #856121 #458521
monochromatic
#0C0923 #1E1554 #2F2185 #402DB6 #604DD3

Accessibility & contrast

On white

12.52
#2F2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2185
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2185#FFFFFF#000000##FFFFFF
##2F21851.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2185;
/* rgb */ color: rgb(47, 33, 133);
/* oklch */ color: oklch(34.0% 0.157 280.3);
Tailwind
colors: {
  custom: {
    50: '#735eaa',
    500: '#2f2185',
    950: '#000000',
  },
}
SCSS
$custom: #2f2185;
$custom-light: #735eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2185",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 248.4,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3395,
    "c": 0.15715,
    "h": 280.3
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#2F2185
secondary
#A7B64C
accent
#E344CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F2185

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

Preview Lab → · Contrast checker → · Palette generator →

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