#2F2798#2F2798

#2F2798 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.175 H 276.6°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2F2798
RGBrgb(47, 39, 152)
HSLhsl(244, 59%, 37%)
HSVhsv(244, 74%, 60%)
CMYKcmyk(69.1%, 74.3%, 0%, 40.4%)
CIE-LABlab(24.71, 39.60, -60.15)
CIE-LCHlch(24.71, 72.02, 303.36°)
OKLaboklab(36.8% 0.0201 -0.1738)
OKLCHoklch(36.8% 0.175 276.6)
XYZxyz(7.5635, 4.3217, 30.1353)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2798 #909827
analogous
#275798 #2F2798 #682798
triadic
#2F2798 #982F27 #27982F
tetradic
#2F2798 #982757 #909827 #279868
square
#2F2798 #982757 #909827 #279868
split-complementary
#2F2798 #986827 #579827
monochromatic
#110E37 #201B67 #2F2798 #3E33C9 #6B63D7

Accessibility & contrast

On white

11.26
#2F2798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F2798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2798
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2798#FFFFFF#000000##FFFFFF
##2F27981.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2798;
/* rgb */ color: rgb(47, 39, 152);
/* oklch */ color: oklch(36.8% 0.175 276.6);
Tailwind
colors: {
  custom: {
    50: '#7763b7',
    500: '#2f2798',
    950: '#000000',
  },
}
SCSS
$custom: #2f2798;
$custom-light: #7763b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2798",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 244.248,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36796,
    "c": 0.17495,
    "h": 276.6
  },
  "luminance": 0.04322
}

Semantic roles & 50–950 ramp

primary
#2F2798
secondary
#B6BC5E
accent
#E245D7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2798

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

Preview Lab → · Contrast checker → · Palette generator →

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