#2F2882#2F2882

#2F2882 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.145 H 279.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2F2882
RGBrgb(47, 40, 130)
HSLhsl(245, 53%, 33%)
HSVhsv(245, 69%, 51%)
CMYKcmyk(63.8%, 69.2%, 0%, 49%)
CIE-LABlab(22.77, 31.52, -49.66)
CIE-LCHlch(22.77, 58.82, 302.41°)
OKLaboklab(34.75% 0.0231 -0.1431)
OKLCHoklch(34.75% 0.145 279.2)
XYZxyz(5.9591, 3.7332, 21.5213)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2882 #7B8228
analogous
#284E82 #2F2882 #5C2882
triadic
#2F2882 #822F28 #28822F
tetradic
#2F2882 #82284E #7B8228 #28825C
square
#2F2882 #82284E #7B8228 #28825C
split-complementary
#2F2882 #825C28 #4E8228
monochromatic
#0D0B24 #1E1A53 #2F2882 #4036B1 #6259CC

Accessibility & contrast

On white

12.02
#2F2882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F2882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2882
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2882#FFFFFF#000000##FFFFFF
##2F28821.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#003F51
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2882;
/* rgb */ color: rgb(47, 40, 130);
/* oklch */ color: oklch(34.8% 0.145 279.2);
Tailwind
colors: {
  custom: {
    50: '#7263a7',
    500: '#2f2882',
    950: '#000000',
  },
}
SCSS
$custom: #2f2882;
$custom-light: #7263a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2882",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 244.667,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34752,
    "c": 0.14498,
    "h": 279.2
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#2F2882
secondary
#AAB155
accent
#DC4BD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2882

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

Preview Lab → · Contrast checker → · Palette generator →

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