#2F2783#2F2783

#2F2783 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.148 H 279.3°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#2F2783
RGBrgb(47, 39, 131)
HSLhsl(245, 54%, 33%)
HSVhsv(245, 70%, 51%)
CMYKcmyk(64.1%, 70.2%, 0%, 48.6%)
CIE-LABlab(22.63, 32.50, -50.51)
CIE-LCHlch(22.63, 60.06, 302.75°)
OKLaboklab(34.68% 0.0238 -0.1456)
OKLCHoklch(34.68% 0.148 279.3)
XYZxyz(5.9932, 3.6936, 21.8654)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2783 #7B8327
analogous
#274D83 #2F2783 #5D2783
triadic
#2F2783 #832F27 #27832F
tetradic
#2F2783 #83274D #7B8327 #27835D
square
#2F2783 #83274D #7B8327 #27835D
split-complementary
#2F2783 #835D27 #4D8327
monochromatic
#0D0B25 #1E1954 #2F2783 #4035B2 #6257CD

Accessibility & contrast

On white

12.08
#2F2783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F2783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2783
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2783#FFFFFF#000000##FFFFFF
##2F27831.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2783;
/* rgb */ color: rgb(47, 39, 131);
/* oklch */ color: oklch(34.7% 0.148 279.3);
Tailwind
colors: {
  custom: {
    50: '#7262a8',
    500: '#2f2783',
    950: '#000000',
  },
}
SCSS
$custom: #2f2783;
$custom-light: #7262a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2783",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 131
  },
  "hsl": {
    "h": 245.217,
    "s": 54.118,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34681,
    "c": 0.14757,
    "h": 279.3
  },
  "luminance": 0.03694
}

Semantic roles & 50–950 ramp

primary
#2F2783
secondary
#AAB254
accent
#DD4AD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2783

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

Preview Lab → · Contrast checker → · Palette generator →

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