#2F2F88#2F2F88

#2F2F88 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.144 H 276.5°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#2F2F88
RGBrgb(47, 47, 136)
HSLhsl(240, 49%, 36%)
HSVhsv(240, 65%, 53%)
CMYKcmyk(65.4%, 65.4%, 0%, 46.7%)
CIE-LABlab(25.00, 29.13, -49.78)
CIE-LCHlch(25.00, 57.67, 300.33°)
OKLaboklab(36.54% 0.0164 -0.1434)
OKLCHoklch(36.54% 0.144 276.5)
XYZxyz(6.6313, 4.4144, 23.7904)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F88 #88882F
analogous
#2F5B88 #2F2F88 #5B2F88
triadic
#2F2F88 #882F2F #2F882F
tetradic
#2F2F88 #882F5B #88882F #2F885B
square
#2F2F88 #882F5B #88882F #2F885B
split-complementary
#2F2F88 #885B2F #5B882F
monochromatic
#10102D #1F1F5B #2F2F88 #3F3FB5 #6767CA

Accessibility & contrast

On white

11.15
#2F2F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F2F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F88
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F88#FFFFFF#000000##FFFFFF
##2F2F881.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8B
Deuteranopia (green-blind)
#003786
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2f88;
/* rgb */ color: rgb(47, 47, 136);
/* oklch */ color: oklch(36.5% 0.144 276.5);
Tailwind
colors: {
  custom: {
    50: '#7368ab',
    500: '#2f2f88',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f88;
$custom-light: #7368ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f88",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 240,
    "s": 48.634,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36538,
    "c": 0.14438,
    "h": 276.5
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#2F2F88
secondary
#B1B161
accent
#D850D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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