#2F2180#2F2180

#2F2180 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.151 H 281.2°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2F2180
RGBrgb(47, 33, 128)
HSLhsl(249, 59%, 32%)
HSVhsv(249, 74%, 50%)
CMYKcmyk(63.3%, 74.2%, 0%, 49.8%)
CIE-LABlab(21.02, 35.12, -51.27)
CIE-LCHlch(21.02, 62.14, 304.42°)
OKLaboklab(33.44% 0.0292 -0.1478)
OKLCHoklch(33.44% 0.151 281.2)
XYZxyz(5.6112, 3.2502, 20.7495)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2180 #728021
analogous
#214380 #2F2180 #5F2180
triadic
#2F2180 #802F21 #21802F
tetradic
#2F2180 #802143 #728021 #21805F
square
#2F2180 #802143 #728021 #21805F
split-complementary
#2F2180 #805F21 #438021
monochromatic
#0B081F #1D144F #2F2180 #412EB1 #5F4BD1

Accessibility & contrast

On white

12.73
#2F2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2180
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2180#FFFFFF#000000##FFFFFF
##2F21801.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2180;
/* rgb */ color: rgb(47, 33, 128);
/* oklch */ color: oklch(33.4% 0.151 281.2);
Tailwind
colors: {
  custom: {
    50: '#725ea6',
    500: '#2f2180',
    950: '#000000',
  },
}
SCSS
$custom: #2f2180;
$custom-light: #725ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2180",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 248.842,
    "s": 59.006,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33438,
    "c": 0.15068,
    "h": 281.2
  },
  "luminance": 0.03251
}

Semantic roles & 50–950 ramp

primary
#2F2180
secondary
#A3B34A
accent
#E246CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F2180

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

Preview Lab → · Contrast checker → · Palette generator →

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