#2F2AA3#2F2AA3

#2F2AA3 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.186 H 275.0°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#2F2AA3
RGBrgb(47, 42, 163)
HSLhsl(242, 59%, 40%)
HSVhsv(242, 74%, 64%)
CMYKcmyk(71.2%, 74.2%, 0%, 36.1%)
CIE-LABlab(26.46, 41.53, -63.98)
CIE-LCHlch(26.46, 76.28, 302.99°)
OKLaboklab(38.38% 0.0162 -0.185)
OKLCHoklch(38.38% 0.186 275)
XYZxyz(8.6089, 4.9038, 35.1361)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2AA3 #9EA32A
analogous
#2A62A3 #2F2AA3 #6B2AA3
triadic
#2F2AA3 #A32F2A #2AA32F
tetradic
#2F2AA3 #A32A62 #9EA32A #2AA36B
square
#2F2AA3 #A32A62 #9EA32A #2AA36B
split-complementary
#2F2AA3 #A36B2A #62A32A
monochromatic
#131142 #211D72 #2F2AA3 #433DCD #726EDA

Accessibility & contrast

On white

10.60
#2F2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F2AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2AA3
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2AA3#FFFFFF#000000##FFFFFF
##2F2AA31.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#0039A1
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2aa3;
/* rgb */ color: rgb(47, 42, 163);
/* oklch */ color: oklch(38.4% 0.186 275.0);
Tailwind
colors: {
  custom: {
    50: '#7965bf',
    500: '#2f2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #2f2aa3;
$custom-light: #7965bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2aa3",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 242.479,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3838,
    "c": 0.18567,
    "h": 275
  },
  "luminance": 0.04905
}

Semantic roles & 50–950 ramp

primary
#2F2AA3
secondary
#BDC068
accent
#E246DC
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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