#2F2F74#2F2F74

#2F2F74 is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.8% C 0.116 H 278.5°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2F2F74
RGBrgb(47, 47, 116)
HSLhsl(240, 42%, 32%)
HSVhsv(240, 59%, 45%)
CMYKcmyk(59.5%, 59.5%, 0%, 54.5%)
CIE-LABlab(23.33, 21.97, -39.86)
CIE-LCHlch(23.33, 45.52, 298.86°)
OKLaboklab(34.79% 0.0172 -0.1143)
OKLCHoklch(34.79% 0.116 278.5)
XYZxyz(5.3402, 3.8980, 16.9906)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F74 #74742F
analogous
#2F5274 #2F2F74 #522F74
triadic
#2F2F74 #742F2F #2F742F
tetradic
#2F2F74 #742F52 #74742F #2F7452
square
#2F2F74 #742F52 #74742F #2F7452
split-complementary
#2F2F74 #74522F #52742F
monochromatic
#0C0C1D #1D1D48 #2F2F74 #4141A0 #5F5FBE

Accessibility & contrast

On white

11.80
#2F2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2F74
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F74#FFFFFF#000000##FFFFFF
##2F2F741.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#003573
Tritanopia (blue-blind)
#083F4C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2f74;
/* rgb */ color: rgb(47, 47, 116);
/* oklch */ color: oklch(34.8% 0.116 278.5);
Tailwind
colors: {
  custom: {
    50: '#6f679d',
    500: '#2f2f74',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f74;
$custom-light: #6f679d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f74",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 240,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3479,
    "c": 0.11559,
    "h": 278.5
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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