#2F2287#2F2287

#2F2287 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.159 H 279.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#2F2287
RGBrgb(47, 34, 135)
HSLhsl(248, 60%, 33%)
HSVhsv(248, 75%, 53%)
CMYKcmyk(65.2%, 74.8%, 0%, 47.1%)
CIE-LABlab(21.93, 36.85, -54.17)
CIE-LCHlch(21.93, 65.52, 304.23°)
OKLaboklab(34.3% 0.027 -0.1563)
OKLCHoklch(34.3% 0.159 279.8)
XYZxyz(6.1161, 3.4972, 23.2697)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2287 #7A8722
analogous
#224787 #2F2287 #612287
triadic
#2F2287 #872F22 #22872F
tetradic
#2F2287 #872247 #7A8722 #228761
square
#2F2287 #872247 #7A8722 #228761
split-complementary
#2F2287 #876122 #478722
monochromatic
#0D0925 #1E1656 #2F2287 #402EB8 #6150D3

Accessibility & contrast

On white

12.36
#2F2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2287
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2287#FFFFFF#000000##FFFFFF
##2F22871.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2287;
/* rgb */ color: rgb(47, 34, 135);
/* oklch */ color: oklch(34.3% 0.159 279.8);
Tailwind
colors: {
  custom: {
    50: '#745fab',
    500: '#2f2287',
    950: '#000000',
  },
}
SCSS
$custom: #2f2287;
$custom-light: #745fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2287",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 247.723,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34302,
    "c": 0.15862,
    "h": 279.8
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#2F2287
secondary
#A9B74E
accent
#E345CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2287

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

Preview Lab → · Contrast checker → · Palette generator →

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