#2F2399#2F2399

#2F2399 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.180 H 277.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#2F2399
RGBrgb(47, 35, 153)
HSLhsl(246, 63%, 37%)
HSVhsv(246, 77%, 60%)
CMYKcmyk(69.3%, 77.1%, 0%, 40%)
CIE-LABlab(24.02, 42.17, -61.90)
CIE-LCHlch(24.02, 74.90, 304.26°)
OKLaboklab(36.34% 0.0222 -0.1789)
OKLCHoklch(36.34% 0.18 277.1)
XYZxyz(7.5212, 4.1056, 30.5269)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2399 #8D9923
analogous
#235299 #2F2399 #6A2399
triadic
#2F2399 #992F23 #23992F
tetradic
#2F2399 #992352 #8D9923 #23996A
square
#2F2399 #992352 #8D9923 #23996A
split-complementary
#2F2399 #996A23 #529923
monochromatic
#100C35 #201867 #2F2399 #3E2ECB #695DDA

Accessibility & contrast

On white

11.53
#2F2399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2F2399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2399
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2399#FFFFFF#000000##FFFFFF
##2F23991.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2399;
/* rgb */ color: rgb(47, 35, 153);
/* oklch */ color: oklch(36.3% 0.180 277.1);
Tailwind
colors: {
  custom: {
    50: '#7860b8',
    500: '#2f2399',
    950: '#000000',
  },
}
SCSS
$custom: #2f2399;
$custom-light: #7860b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2399",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 246.102,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36339,
    "c": 0.18025,
    "h": 277.1
  },
  "luminance": 0.04106
}

Semantic roles & 50–950 ramp

primary
#2F2399
secondary
#B4BE59
accent
#E642D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F2399

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

Preview Lab → · Contrast checker → · Palette generator →

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