#2F2491#2F2491

#2F2491 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.169 H 278.0°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2F2491
RGBrgb(47, 36, 145)
HSLhsl(246, 60%, 35%)
HSVhsv(246, 75%, 57%)
CMYKcmyk(67.6%, 75.2%, 0%, 43.1%)
CIE-LABlab(23.37, 39.00, -58.04)
CIE-LCHlch(23.37, 69.92, 303.90°)
OKLaboklab(35.63% 0.0234 -0.1676)
OKLCHoklch(35.63% 0.169 278)
XYZxyz(6.9123, 3.9098, 27.1730)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2491 #869124
analogous
#244F91 #2F2491 #652491
triadic
#2F2491 #912F24 #24912F
tetradic
#2F2491 #91244F #869124 #249165
square
#2F2491 #91244F #869124 #249165
split-complementary
#2F2491 #916524 #4F9124
monochromatic
#0F0C2F #1F1860 #2F2491 #3F30C2 #6659D6

Accessibility & contrast

On white

11.78
#2F2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2491
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2491#FFFFFF#000000##FFFFFF
##2F24911.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C94
Deuteranopia (green-blind)
#00338F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2491;
/* rgb */ color: rgb(47, 36, 145);
/* oklch */ color: oklch(35.6% 0.169 278.0);
Tailwind
colors: {
  custom: {
    50: '#7661b2',
    500: '#2f2491',
    950: '#000000',
  },
}
SCSS
$custom: #2f2491;
$custom-light: #7661b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2491",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 246.055,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35631,
    "c": 0.16924,
    "h": 278
  },
  "luminance": 0.0391
}

Semantic roles & 50–950 ramp

primary
#2F2491
secondary
#B0BA56
accent
#E344D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2491

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

Preview Lab → · Contrast checker → · Palette generator →

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