#2F2885#2F2885

#2F2885 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.149 H 278.8°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#2F2885
RGBrgb(47, 40, 133)
HSLhsl(245, 54%, 34%)
HSVhsv(245, 70%, 52%)
CMYKcmyk(64.7%, 69.9%, 0%, 47.8%)
CIE-LABlab(23.05, 32.56, -51.08)
CIE-LCHlch(23.05, 60.58, 302.51°)
OKLaboklab(35.04% 0.0227 -0.1473)
OKLCHoklch(35.04% 0.149 278.8)
XYZxyz(6.1634, 3.8149, 22.5973)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2885 #7E8528
analogous
#285085 #2F2885 #5E2885
triadic
#2F2885 #852F28 #28852F
tetradic
#2F2885 #852850 #7E8528 #28855E
square
#2F2885 #852850 #7E8528 #28855E
split-complementary
#2F2885 #855E28 #508528
monochromatic
#0E0C27 #1E1A56 #2F2885 #4036B4 #635ACD

Accessibility & contrast

On white

11.91
#2F2885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F2885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2885
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2885#FFFFFF#000000##FFFFFF
##2F28851.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003383
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2885;
/* rgb */ color: rgb(47, 40, 133);
/* oklch */ color: oklch(35.0% 0.149 278.8);
Tailwind
colors: {
  custom: {
    50: '#7363a9',
    500: '#2f2885',
    950: '#000000',
  },
}
SCSS
$custom: #2f2885;
$custom-light: #7363a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2885",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 244.516,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35041,
    "c": 0.14904,
    "h": 278.8
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#2F2885
secondary
#ACB356
accent
#DD4BD2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2885

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

Preview Lab → · Contrast checker → · Palette generator →

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