#2F2DAB#2F2DAB

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

Color values

HEX#2F2DAB
RGBrgb(47, 45, 171)
HSLhsl(241, 58%, 42%)
HSVhsv(241, 74%, 67%)
CMYKcmyk(72.5%, 73.7%, 0%, 32.9%)
CIE-LABlab(27.90, 42.48, -66.43)
CIE-LCHlch(27.90, 78.85, 302.60°)
OKLaboklab(39.65% 0.013 -0.1921)
OKLCHoklch(39.65% 0.193 273.9)
XYZxyz(9.4589, 5.4204, 39.0679)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DAB #A9AB2D
analogous
#2D6AAB #2F2DAB #6E2DAB
triadic
#2F2DAB #AB2F2D #2DAB2F
tetradic
#2F2DAB #AB2D6A #A9AB2D #2DAB6E
square
#2F2DAB #AB2D6A #A9AB2D #2DAB6E
split-complementary
#2F2DAB #AB6E2D #6AAB2D
monochromatic
#14144A #22207B #2F2DAB #4947CE #7977DB

Accessibility & contrast

On white

10.08
#2F2DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2DAB
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DAB#FFFFFF#000000##FFFFFF
##2F2DAB1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2dab;
/* rgb */ color: rgb(47, 45, 171);
/* oklch */ color: oklch(39.7% 0.193 273.9);
Tailwind
colors: {
  custom: {
    50: '#7b67c5',
    500: '#2f2dab',
    950: '#000000',
  },
}
SCSS
$custom: #2f2dab;
$custom-light: #7b67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2dab",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 240.952,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39652,
    "c": 0.19258,
    "h": 273.9
  },
  "luminance": 0.05421
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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