#2F2494#2F2494

#2F2494 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.173 H 277.6°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2F2494
RGBrgb(47, 36, 148)
HSLhsl(246, 61%, 36%)
HSVhsv(246, 76%, 58%)
CMYKcmyk(68.2%, 75.7%, 0%, 42%)
CIE-LABlab(23.68, 39.99, -59.38)
CIE-LCHlch(23.68, 71.59, 303.96°)
OKLaboklab(35.95% 0.0228 -0.1715)
OKLCHoklch(35.95% 0.173 277.6)
XYZxyz(7.1467, 4.0036, 28.4074)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2494 #899424
analogous
#245194 #2F2494 #672494
triadic
#2F2494 #942F24 #24942F
tetradic
#2F2494 #942451 #899424 #249467
square
#2F2494 #942451 #899424 #249467
split-complementary
#2F2494 #946724 #519424
monochromatic
#100C32 #1F1863 #2F2494 #3F30C5 #675BD7

Accessibility & contrast

On white

11.66
#2F2494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F2494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2494
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2494#FFFFFF#000000##FFFFFF
##2F24941.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2494;
/* rgb */ color: rgb(47, 36, 148);
/* oklch */ color: oklch(35.9% 0.173 277.6);
Tailwind
colors: {
  custom: {
    50: '#7661b5',
    500: '#2f2494',
    950: '#000000',
  },
}
SCSS
$custom: #2f2494;
$custom-light: #7661b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2494",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 148
  },
  "hsl": {
    "h": 245.893,
    "s": 60.87,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35945,
    "c": 0.17302,
    "h": 277.6
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2494

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

Preview Lab → · Contrast checker → · Palette generator →

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