#2F2F89#2F2F89

#2F2F89 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.146 H 276.4°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#2F2F89
RGBrgb(47, 47, 137)
HSLhsl(240, 49%, 36%)
HSVhsv(240, 66%, 54%)
CMYKcmyk(65.7%, 65.7%, 0%, 46.3%)
CIE-LABlab(25.09, 29.48, -50.26)
CIE-LCHlch(25.09, 58.27, 300.40°)
OKLaboklab(36.63% 0.0164 -0.1448)
OKLCHoklch(36.63% 0.146 276.4)
XYZxyz(6.7027, 4.4430, 24.1664)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F89 #89892F
analogous
#2F5C89 #2F2F89 #5C2F89
triadic
#2F2F89 #892F2F #2F892F
tetradic
#2F2F89 #892F5C #89892F #2F895C
square
#2F2F89 #892F5C #89892F #2F895C
split-complementary
#2F2F89 #895C2F #5C892F
monochromatic
#10102E #1F1F5B #2F2F89 #3F3FB7 #6767CB

Accessibility & contrast

On white

11.12
#2F2F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F2F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F89
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F89#FFFFFF#000000##FFFFFF
##2F2F891.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f2f89;
/* rgb */ color: rgb(47, 47, 137);
/* oklch */ color: oklch(36.6% 0.146 276.4);
Tailwind
colors: {
  custom: {
    50: '#7368ac',
    500: '#2f2f89',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f89;
$custom-light: #7368ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f89",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 240,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3663,
    "c": 0.14577,
    "h": 276.4
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#2F2F89
secondary
#B2B262
accent
#D84FD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2F89

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

Preview Lab → · Contrast checker → · Palette generator →

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