#2F2583#2F2583

#2F2583 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.150 H 279.8°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2F2583
RGBrgb(47, 37, 131)
HSLhsl(246, 56%, 33%)
HSVhsv(246, 72%, 51%)
CMYKcmyk(64.1%, 71.8%, 0%, 48.6%)
CIE-LABlab(22.18, 33.73, -51.25)
CIE-LCHlch(22.18, 61.36, 303.35°)
OKLaboklab(34.36% 0.0255 -0.1478)
OKLCHoklch(34.36% 0.15 279.8)
XYZxyz(5.9293, 3.5657, 21.8441)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2583 #798325
analogous
#254A83 #2F2583 #5E2583
triadic
#2F2583 #832F25 #25832F
tetradic
#2F2583 #83254A #798325 #25835E
square
#2F2583 #83254A #798325 #25835E
split-complementary
#2F2583 #835E25 #4A8325
monochromatic
#0D0A24 #1E1853 #2F2583 #4032B3 #6154CF

Accessibility & contrast

On white

12.26
#2F2583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F2583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2583
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2583#FFFFFF#000000##FFFFFF
##2F25831.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2583;
/* rgb */ color: rgb(47, 37, 131);
/* oklch */ color: oklch(34.4% 0.150 279.8);
Tailwind
colors: {
  custom: {
    50: '#7361a8',
    500: '#2f2583',
    950: '#000000',
  },
}
SCSS
$custom: #2f2583;
$custom-light: #7361a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2583",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 131
  },
  "hsl": {
    "h": 246.383,
    "s": 55.952,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34357,
    "c": 0.14997,
    "h": 279.8
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#2F2583
secondary
#A8B351
accent
#DF49CF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2583

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

Preview Lab → · Contrast checker → · Palette generator →

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