#2F2EAA#2F2EAA

#2F2EAA is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.190 H 273.8°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#2F2EAA
RGBrgb(47, 46, 170)
HSLhsl(240, 57%, 42%)
HSVhsv(240, 73%, 67%)
CMYKcmyk(72.4%, 72.9%, 0%, 33.3%)
CIE-LABlab(28.01, 41.56, -65.65)
CIE-LCHlch(28.01, 77.70, 302.34°)
OKLaboklab(39.7% 0.0127 -0.1899)
OKLCHoklch(39.7% 0.19 273.8)
XYZxyz(9.4026, 5.4597, 38.5807)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EAA #A9AA2E
analogous
#2E6BAA #2F2EAA #6D2EAA
triadic
#2F2EAA #AA2F2E #2EAA2F
tetradic
#2F2EAA #AA2E6B #A9AA2E #2EAA6D
square
#2F2EAA #AA2E6B #A9AA2E #2EAA6D
split-complementary
#2F2EAA #AA6D2E #6BAA2E
monochromatic
#14144A #22217A #2F2EAA #4948CD #7978DA

Accessibility & contrast

On white

10.04
#2F2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EAA
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EAA#FFFFFF#000000##FFFFFF
##2F2EAA1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#003CA8
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f2eaa;
/* rgb */ color: rgb(47, 46, 170);
/* oklch */ color: oklch(39.7% 0.190 273.8);
Tailwind
colors: {
  custom: {
    50: '#7a68c4',
    500: '#2f2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #2f2eaa;
$custom-light: #7a68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2eaa",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 240.484,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39696,
    "c": 0.1903,
    "h": 273.8
  },
  "luminance": 0.05461
}

Semantic roles & 50–950 ramp

primary
#2F2EAA
secondary
#C2C371
accent
#E147DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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