#2F2AA9#2F2AA9

#2F2AA9 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 39.0% C 0.193 H 274.4°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2F2AA9
RGBrgb(47, 42, 169)
HSLhsl(242, 60%, 41%)
HSVhsv(242, 75%, 66%)
CMYKcmyk(72.2%, 75.1%, 0%, 33.7%)
CIE-LABlab(27.08, 43.52, -66.57)
CIE-LCHlch(27.08, 79.53, 303.18°)
OKLaboklab(39.01% 0.015 -0.1925)
OKLCHoklch(39.01% 0.193 274.4)
XYZxyz(9.1593, 5.1239, 38.0347)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AA9 #A4A92A
analogous
#2A65A9 #2F2AA9 #6F2AA9
triadic
#2F2AA9 #A92F2A #2AA92F
tetradic
#2F2AA9 #A92A65 #A4A92A #2AA96F
square
#2F2AA9 #A92A65 #A4A92A #2AA96F
split-complementary
#2F2AA9 #A96F2A #65A92A
monochromatic
#141247 #211E78 #2F2AA9 #4641D0 #7672DC

Accessibility & contrast

On white

10.37
#2F2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F2AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AA9
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AA9#FFFFFF#000000##FFFFFF
##2F2AA91.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003AA7
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f2aa9;
/* rgb */ color: rgb(47, 42, 169);
/* oklch */ color: oklch(39.0% 0.193 274.4);
Tailwind
colors: {
  custom: {
    50: '#7b65c4',
    500: '#2f2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #2f2aa9;
$custom-light: #7b65c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2aa9",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 242.362,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39011,
    "c": 0.19311,
    "h": 274.4
  },
  "luminance": 0.05125
}

Semantic roles & 50–950 ramp

primary
#2F2AA9
secondary
#C0C36C
accent
#E344DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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