#2F2F73#2F2F73

#2F2F73 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.7% C 0.114 H 278.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#2F2F73
RGBrgb(47, 47, 115)
HSLhsl(240, 42%, 32%)
HSVhsv(240, 59%, 45%)
CMYKcmyk(59.1%, 59.1%, 0%, 54.9%)
CIE-LABlab(23.25, 21.61, -39.35)
CIE-LCHlch(23.25, 44.89, 298.78°)
OKLaboklab(34.71% 0.0172 -0.1128)
OKLCHoklch(34.71% 0.114 278.6)
XYZxyz(5.2823, 3.8748, 16.6859)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F73 #73732F
analogous
#2F5173 #2F2F73 #512F73
triadic
#2F2F73 #732F2F #2F732F
tetradic
#2F2F73 #732F51 #73732F #2F7351
square
#2F2F73 #732F51 #73732F #2F7351
split-complementary
#2F2F73 #73512F #51732F
monochromatic
#0B0B1C #1D1D48 #2F2F73 #41419E #5F5FBE

Accessibility & contrast

On white

11.83
#2F2F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F2F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F73
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F73#FFFFFF#000000##FFFFFF
##2F2F731.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A75
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#093F4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f2f73;
/* rgb */ color: rgb(47, 47, 115);
/* oklch */ color: oklch(34.7% 0.114 278.6);
Tailwind
colors: {
  custom: {
    50: '#6e679c',
    500: '#2f2f73',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f73;
$custom-light: #6e679c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f73",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 115
  },
  "hsl": {
    "h": 240,
    "s": 41.975,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34707,
    "c": 0.1141,
    "h": 278.6
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#2F2F73
secondary
#A4A45A
accent
#D256D2
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #2F2F73

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

Preview Lab → · Contrast checker → · Palette generator →

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