#2F2F78#2F2F78

#2F2F78 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.122 H 278.1°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#2F2F78
RGBrgb(47, 47, 120)
HSLhsl(240, 44%, 33%)
HSVhsv(240, 61%, 47%)
CMYKcmyk(60.8%, 60.8%, 0%, 52.9%)
CIE-LABlab(23.65, 23.41, -41.90)
CIE-LCHlch(23.65, 47.99, 299.19°)
OKLaboklab(35.13% 0.0172 -0.1203)
OKLCHoklch(35.13% 0.122 278.1)
XYZxyz(5.5779, 3.9930, 18.2425)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2F78 #78782F
analogous
#2F5378 #2F2F78 #532F78
triadic
#2F2F78 #782F2F #2F782F
tetradic
#2F2F78 #782F53 #78782F #2F7853
square
#2F2F78 #782F53 #78782F #2F7853
split-complementary
#2F2F78 #78532F #53782F
monochromatic
#0D0D20 #1E1E4C #2F2F78 #4040A4 #6060C1

Accessibility & contrast

On white

11.68
#2F2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F2F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2F78
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2F78#FFFFFF#000000##FFFFFF
##2F2F781.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2f78;
/* rgb */ color: rgb(47, 47, 120);
/* oklch */ color: oklch(35.1% 0.122 278.1);
Tailwind
colors: {
  custom: {
    50: '#6f67a0',
    500: '#2f2f78',
    950: '#000000',
  },
}
SCSS
$custom: #2f2f78;
$custom-light: #6f67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2f78",
  "rgb": {
    "r": 47,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 240,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35125,
    "c": 0.12151,
    "h": 278.1
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#2F2F78
secondary
#A8A85B
accent
#D354D3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2F2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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