#2F2BAA#2F2BAA

#2F2BAA is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.3% C 0.193 H 274.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2F2BAA
RGBrgb(47, 43, 170)
HSLhsl(242, 60%, 42%)
HSVhsv(242, 75%, 67%)
CMYKcmyk(72.4%, 74.7%, 0%, 33.3%)
CIE-LABlab(27.39, 43.29, -66.67)
CIE-LCHlch(27.39, 79.49, 303.00°)
OKLaboklab(39.26% 0.0143 -0.1928)
OKLCHoklch(39.26% 0.193 274.2)
XYZxyz(9.2895, 5.2335, 38.5430)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2BAA #A6AA2B
analogous
#2B67AA #2F2BAA #6F2BAA
triadic
#2F2BAA #AA2F2B #2BAA2F
tetradic
#2F2BAA #AA2B67 #A6AA2B #2BAA6F
square
#2F2BAA #AA2B67 #A6AA2B #2BAA6F
split-complementary
#2F2BAA #AA6F2B #67AA2B
monochromatic
#141248 #211F79 #2F2BAA #4743CF #7774DC

Accessibility & contrast

On white

10.26
#2F2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F2BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2BAA
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2BAA#FFFFFF#000000##FFFFFF
##2F2BAA1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003BA8
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f2baa;
/* rgb */ color: rgb(47, 43, 170);
/* oklch */ color: oklch(39.3% 0.193 274.2);
Tailwind
colors: {
  custom: {
    50: '#7b66c5',
    500: '#2f2baa',
    950: '#000000',
  },
}
SCSS
$custom: #2f2baa;
$custom-light: #7b66c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2baa",
  "rgb": {
    "r": 47,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 241.89,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39258,
    "c": 0.19335,
    "h": 274.2
  },
  "luminance": 0.05234
}

Semantic roles & 50–950 ramp

primary
#2F2BAA
secondary
#C1C36E
accent
#E345DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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