#2F2298#2F2298

#2F2298 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.180 H 277.3°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2F2298
RGBrgb(47, 34, 152)
HSLhsl(247, 63%, 36%)
HSVhsv(247, 78%, 60%)
CMYKcmyk(69.1%, 77.6%, 0%, 40.4%)
CIE-LABlab(23.72, 42.39, -61.78)
CIE-LCHlch(23.72, 74.93, 304.46°)
OKLaboklab(36.1% 0.023 -0.1785)
OKLCHoklch(36.1% 0.18 277.3)
XYZxyz(7.4100, 4.0147, 30.0841)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2298 #8B9822
analogous
#225098 #2F2298 #6A2298
triadic
#2F2298 #982F22 #22982F
tetradic
#2F2298 #982250 #8B9822 #22986A
square
#2F2298 #982250 #8B9822 #22986A
split-complementary
#2F2298 #986A22 #509822
monochromatic
#100C34 #201766 #2F2298 #3E2DCA #685ADA

Accessibility & contrast

On white

11.65
#2F2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2298
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2298#FFFFFF#000000##FFFFFF
##2F22981.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2298;
/* rgb */ color: rgb(47, 34, 152);
/* oklch */ color: oklch(36.1% 0.180 277.3);
Tailwind
colors: {
  custom: {
    50: '#7760b8',
    500: '#2f2298',
    950: '#000000',
  },
}
SCSS
$custom: #2f2298;
$custom-light: #7760b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2298",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 246.61,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36098,
    "c": 0.17998,
    "h": 277.3
  },
  "luminance": 0.04015
}

Semantic roles & 50–950 ramp

primary
#2F2298
secondary
#B3BE57
accent
#E641D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2298

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

Preview Lab → · Contrast checker → · Palette generator →

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