#2F2183#2F2183

#2F2183 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.155 H 280.7°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#2F2183
RGBrgb(47, 33, 131)
HSLhsl(249, 60%, 32%)
HSVhsv(249, 75%, 51%)
CMYKcmyk(64.1%, 74.8%, 0%, 48.6%)
CIE-LABlab(21.32, 36.11, -52.66)
CIE-LCHlch(21.32, 63.86, 304.44°)
OKLaboklab(33.74% 0.0286 -0.1519)
OKLCHoklch(33.74% 0.155 280.7)
XYZxyz(5.8116, 3.3303, 21.8049)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2183 #758321
analogous
#214483 #2F2183 #602183
triadic
#2F2183 #832F21 #21832F
tetradic
#2F2183 #832144 #758321 #218360
square
#2F2183 #832144 #758321 #218360
split-complementary
#2F2183 #836021 #448321
monochromatic
#0C0821 #1D1552 #2F2183 #412DB4 #5F4CD2

Accessibility & contrast

On white

12.60
#2F2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F2183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2183
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2183#FFFFFF#000000##FFFFFF
##2F21831.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f2183;
/* rgb */ color: rgb(47, 33, 131);
/* oklch */ color: oklch(33.7% 0.155 280.7);
Tailwind
colors: {
  custom: {
    50: '#735ea8',
    500: '#2f2183',
    950: '#000000',
  },
}
SCSS
$custom: #2f2183;
$custom-light: #735ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2183",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 248.571,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33744,
    "c": 0.15458,
    "h": 280.7
  },
  "luminance": 0.03331
}

Semantic roles & 50–950 ramp

primary
#2F2183
secondary
#A6B54B
accent
#E345CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F2183

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

Preview Lab → · Contrast checker → · Palette generator →

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