#2F2492#2F2492

#2F2492 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.171 H 277.8°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2F2492
RGBrgb(47, 36, 146)
HSLhsl(246, 60%, 36%)
HSVhsv(246, 75%, 57%)
CMYKcmyk(67.8%, 75.3%, 0%, 42.7%)
CIE-LABlab(23.47, 39.33, -58.49)
CIE-LCHlch(23.47, 70.48, 303.92°)
OKLaboklab(35.74% 0.0232 -0.1689)
OKLCHoklch(35.74% 0.171 277.8)
XYZxyz(6.9898, 3.9408, 27.5809)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2492 #879224
analogous
#245092 #2F2492 #662492
triadic
#2F2492 #922F24 #24922F
tetradic
#2F2492 #922450 #879224 #249266
square
#2F2492 #922450 #879224 #249266
split-complementary
#2F2492 #926624 #509224
monochromatic
#0F0C30 #1F1861 #2F2492 #3F30C3 #665AD6

Accessibility & contrast

On white

11.74
#2F2492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2F2492 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2492
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2492#FFFFFF#000000##FFFFFF
##2F24921.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C95
Deuteranopia (green-blind)
#003390
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2492;
/* rgb */ color: rgb(47, 36, 146);
/* oklch */ color: oklch(35.7% 0.171 277.8);
Tailwind
colors: {
  custom: {
    50: '#7661b3',
    500: '#2f2492',
    950: '#000000',
  },
}
SCSS
$custom: #2f2492;
$custom-light: #7661b3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2492",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 146
  },
  "hsl": {
    "h": 246,
    "s": 60.44,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35735,
    "c": 0.17051,
    "h": 277.8
  },
  "luminance": 0.03941
}

Semantic roles & 50–950 ramp

primary
#2F2492
secondary
#B1BB57
accent
#E444D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2492

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

Preview Lab → · Contrast checker → · Palette generator →

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