#2F2F85#2F2F85

#2F2F85 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.140 H 276.8°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#2F2F85
RGBrgb(47, 47, 133)
HSLhsl(240, 48%, 35%)
HSVhsv(240, 65%, 52%)
CMYKcmyk(64.7%, 64.7%, 0%, 47.8%)
CIE-LABlab(24.73, 28.06, -48.33)
CIE-LCHlch(24.73, 55.88, 300.14°)
OKLaboklab(36.27% 0.0167 -0.1392)
OKLCHoklch(36.27% 0.14 276.8)
XYZxyz(6.4211, 4.3303, 22.6832)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F85 #85852F
analogous
#2F5A85 #2F2F85 #5A2F85
triadic
#2F2F85 #852F2F #2F852F
tetradic
#2F2F85 #852F5A #85852F #2F855A
square
#2F2F85 #852F5A #85852F #2F855A
split-complementary
#2F2F85 #855A2F #5A852F
monochromatic
#0F0F2B #1F1F58 #2F2F85 #3F3FB2 #6666C9

Accessibility & contrast

On white

11.25
#2F2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F85
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F85#FFFFFF#000000##FFFFFF
##2F2F851.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2f85;
/* rgb */ color: rgb(47, 47, 133);
/* oklch */ color: oklch(36.3% 0.140 276.8);
Tailwind
colors: {
  custom: {
    50: '#7268a9',
    500: '#2f2f85',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f85;
$custom-light: #7268a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f85",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 240,
    "s": 47.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36265,
    "c": 0.14019,
    "h": 276.8
  },
  "luminance": 0.04331
}

Semantic roles & 50–950 ramp

primary
#2F2F85
secondary
#B0B060
accent
#D750D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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