#2F2790#2F2790

#2F2790 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.165 H 277.5°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2F2790
RGBrgb(47, 39, 144)
HSLhsl(245, 57%, 36%)
HSVhsv(245, 73%, 56%)
CMYKcmyk(67.4%, 72.9%, 0%, 43.5%)
CIE-LABlab(23.90, 36.92, -56.55)
CIE-LCHlch(23.90, 67.54, 303.14°)
OKLaboklab(35.97% 0.0216 -0.1633)
OKLCHoklch(35.97% 0.165 277.5)
XYZxyz(6.9302, 4.0684, 26.8002)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2790 #889027
analogous
#275390 #2F2790 #632790
triadic
#2F2790 #902F27 #27902F
tetradic
#2F2790 #902753 #889027 #279063
square
#2F2790 #902753 #889027 #279063
split-complementary
#2F2790 #906327 #539027
monochromatic
#100D30 #1F1A60 #2F2790 #3F34C0 #675ED3

Accessibility & contrast

On white

11.58
#2F2790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2790
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2790#FFFFFF#000000##FFFFFF
##2F27901.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2790;
/* rgb */ color: rgb(47, 39, 144);
/* oklch */ color: oklch(36.0% 0.165 277.5);
Tailwind
colors: {
  custom: {
    50: '#7562b2',
    500: '#2f2790',
    950: '#000000',
  },
}
SCSS
$custom: #2f2790;
$custom-light: #7562b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2790",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 244.571,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35973,
    "c": 0.16472,
    "h": 277.5
  },
  "luminance": 0.04069
}

Semantic roles & 50–950 ramp

primary
#2F2790
secondary
#B1B95A
accent
#E147D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F2790

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

Preview Lab → · Contrast checker → · Palette generator →

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