#2F2690#2F2690

#2F2690 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.166 H 277.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2F2690
RGBrgb(47, 38, 144)
HSLhsl(245, 58%, 36%)
HSVhsv(245, 74%, 56%)
CMYKcmyk(67.4%, 73.6%, 0%, 43.5%)
CIE-LABlab(23.68, 37.51, -56.90)
CIE-LCHlch(23.68, 68.15, 303.39°)
OKLaboklab(35.82% 0.0223 -0.1643)
OKLCHoklch(35.82% 0.166 277.7)
XYZxyz(6.8978, 4.0036, 26.7894)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2690 #879026
analogous
#265290 #2F2690 #642690
triadic
#2F2690 #902F26 #26902F
tetradic
#2F2690 #902652 #879026 #269064
square
#2F2690 #902652 #879026 #269064
split-complementary
#2F2690 #906426 #529026
monochromatic
#0F0C2F #1F1960 #2F2690 #3F33C0 #665CD4

Accessibility & contrast

On white

11.66
#2F2690 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2690
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2690#FFFFFF#000000##FFFFFF
##2F26901.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2690;
/* rgb */ color: rgb(47, 38, 144);
/* oklch */ color: oklch(35.8% 0.166 277.7);
Tailwind
colors: {
  custom: {
    50: '#7562b2',
    500: '#2f2690',
    950: '#000000',
  },
}
SCSS
$custom: #2f2690;
$custom-light: #7562b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2690",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 144
  },
  "hsl": {
    "h": 245.094,
    "s": 58.242,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35821,
    "c": 0.16583,
    "h": 277.7
  },
  "luminance": 0.04004
}

Semantic roles & 50–950 ramp

primary
#2F2690
secondary
#B1B959
accent
#E146D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2690

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

Preview Lab → · Contrast checker → · Palette generator →

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