#2F2290#2F2290

#2F2290 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.170 H 278.4°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2F2290
RGBrgb(47, 34, 144)
HSLhsl(247, 62%, 35%)
HSVhsv(247, 76%, 56%)
CMYKcmyk(67.4%, 76.4%, 0%, 43.5%)
CIE-LABlab(22.87, 39.80, -58.25)
CIE-LCHlch(22.87, 70.55, 304.35°)
OKLaboklab(35.24% 0.0249 -0.1682)
OKLCHoklch(35.24% 0.17 278.4)
XYZxyz(6.7767, 3.7614, 26.7491)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2290 #839022
analogous
#224C90 #2F2290 #662290
triadic
#2F2290 #902F22 #22902F
tetradic
#2F2290 #90224C #839022 #229066
square
#2F2290 #90224C #839022 #229066
split-complementary
#2F2290 #906622 #4C9022
monochromatic
#0F0B2D #1F165E #2F2290 #3F2EC2 #6555D7

Accessibility & contrast

On white

11.98
#2F2290 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F2290 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2290
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2290#FFFFFF#000000##FFFFFF
##2F22901.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B93
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2290;
/* rgb */ color: rgb(47, 34, 144);
/* oklch */ color: oklch(35.2% 0.170 278.4);
Tailwind
colors: {
  custom: {
    50: '#765fb2',
    500: '#2f2290',
    950: '#000000',
  },
}
SCSS
$custom: #2f2290;
$custom-light: #765fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2290",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 144
  },
  "hsl": {
    "h": 247.091,
    "s": 61.798,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35242,
    "c": 0.17006,
    "h": 278.4
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#2F2290
secondary
#AFBB53
accent
#E543D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2290

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

Preview Lab → · Contrast checker → · Palette generator →

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