#2F2496#2F2496

#2F2496 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.176 H 277.3°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2F2496
RGBrgb(47, 36, 150)
HSLhsl(246, 61%, 36%)
HSVhsv(246, 76%, 59%)
CMYKcmyk(68.7%, 76%, 0%, 41.2%)
CIE-LABlab(23.89, 40.64, -60.26)
CIE-LCHlch(23.89, 72.69, 304.00°)
OKLaboklab(36.16% 0.0223 -0.1741)
OKLCHoklch(36.16% 0.176 277.3)
XYZxyz(7.3064, 4.0675, 29.2483)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2496 #8B9624
analogous
#245296 #2F2496 #682496
triadic
#2F2496 #962F24 #24962F
tetradic
#2F2496 #962452 #8B9624 #249668
square
#2F2496 #962452 #8B9624 #249668
split-complementary
#2F2496 #966824 #529624
monochromatic
#100C33 #201865 #2F2496 #3E30C7 #685CD8

Accessibility & contrast

On white

11.58
#2F2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2496
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2496#FFFFFF#000000##FFFFFF
##2F24961.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2496;
/* rgb */ color: rgb(47, 36, 150);
/* oklch */ color: oklch(36.2% 0.176 277.3);
Tailwind
colors: {
  custom: {
    50: '#7761b6',
    500: '#2f2496',
    950: '#000000',
  },
}
SCSS
$custom: #2f2496;
$custom-light: #7761b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2496",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 245.789,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36156,
    "c": 0.17553,
    "h": 277.3
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

primary
#2F2496
secondary
#B3BD59
accent
#E443D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2496

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

Preview Lab → · Contrast checker → · Palette generator →

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