#2F2EA7#2F2EA7

#2F2EA7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.187 H 274.1°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#2F2EA7
RGBrgb(47, 46, 167)
HSLhsl(240, 57%, 42%)
HSVhsv(240, 72%, 65%)
CMYKcmyk(71.9%, 72.5%, 0%, 34.5%)
CIE-LABlab(27.70, 40.55, -64.35)
CIE-LCHlch(27.70, 76.06, 302.22°)
OKLaboklab(39.39% 0.0132 -0.1861)
OKLCHoklch(39.39% 0.187 274.1)
XYZxyz(9.1220, 5.3475, 37.1031)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EA7 #A6A72E
analogous
#2E6AA7 #2F2EA7 #6C2EA7
triadic
#2F2EA7 #A72F2E #2EA72F
tetradic
#2F2EA7 #A72E6A #A6A72E #2EA76C
square
#2F2EA7 #A72E6A #A6A72E #2EA76C
split-complementary
#2F2EA7 #A76C2E #6AA72E
monochromatic
#141447 #212177 #2F2EA7 #4746CC #7776D9

Accessibility & contrast

On white

10.15
#2F2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EA7
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EA7#FFFFFF#000000##FFFFFF
##2F2EA71.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#003CA5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f2ea7;
/* rgb */ color: rgb(47, 46, 167);
/* oklch */ color: oklch(39.4% 0.187 274.1);
Tailwind
colors: {
  custom: {
    50: '#7a68c2',
    500: '#2f2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ea7;
$custom-light: #7a68c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ea7",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 240.496,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39388,
    "c": 0.18654,
    "h": 274.1
  },
  "luminance": 0.05348
}

Semantic roles & 50–950 ramp

primary
#2F2EA7
secondary
#C1C170
accent
#E048DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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