#2F2EA9#2F2EA9

#2F2EA9 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.6% C 0.189 H 273.9°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2F2EA9
RGBrgb(47, 46, 169)
HSLhsl(240, 57%, 42%)
HSVhsv(240, 73%, 66%)
CMYKcmyk(72.2%, 72.8%, 0%, 33.7%)
CIE-LABlab(27.90, 41.23, -65.22)
CIE-LCHlch(27.90, 77.16, 302.30°)
OKLaboklab(39.59% 0.0129 -0.1886)
OKLCHoklch(39.59% 0.189 273.9)
XYZxyz(9.3083, 5.4220, 38.0844)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EA9 #A8A92E
analogous
#2E6AA9 #2F2EA9 #6D2EA9
triadic
#2F2EA9 #A92F2E #2EA92F
tetradic
#2F2EA9 #A92E6A #A8A92E #2EA96D
square
#2F2EA9 #A92E6A #A8A92E #2EA96D
split-complementary
#2F2EA9 #A96D2E #6AA92E
monochromatic
#141449 #222179 #2F2EA9 #4847CD #7877DA

Accessibility & contrast

On white

10.07
#2F2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F2EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EA9
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EA9#FFFFFF#000000##FFFFFF
##2F2EA91.0010.072.0810.07
#FFFFFF10.071.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#003CA7
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f2ea9;
/* rgb */ color: rgb(47, 46, 169);
/* oklch */ color: oklch(39.6% 0.189 273.9);
Tailwind
colors: {
  custom: {
    50: '#7a68c4',
    500: '#2f2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ea9;
$custom-light: #7a68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ea9",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 240.488,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39593,
    "c": 0.18905,
    "h": 273.9
  },
  "luminance": 0.05423
}

Semantic roles & 50–950 ramp

primary
#2F2EA9
secondary
#C1C271
accent
#E047DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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