#2F278F#2F278F

#2F278F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.163 H 277.7°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2F278F
RGBrgb(47, 39, 143)
HSLhsl(245, 57%, 36%)
HSVhsv(245, 73%, 56%)
CMYKcmyk(67.1%, 72.7%, 0%, 43.9%)
CIE-LABlab(23.80, 36.58, -56.10)
CIE-LCHlch(23.80, 66.97, 303.11°)
OKLaboklab(35.87% 0.0218 -0.162)
OKLCHoklch(35.87% 0.163 277.7)
XYZxyz(6.8541, 4.0380, 26.3995)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F278F #878F27
analogous
#27538F #2F278F #63278F
triadic
#2F278F #8F2F27 #278F2F
tetradic
#2F278F #8F2753 #878F27 #278F63
square
#2F278F #8F2753 #878F27 #278F63
split-complementary
#2F278F #8F6327 #538F27
monochromatic
#0F0D2F #1F1A5F #2F278F #3F34BF #665DD3

Accessibility & contrast

On white

11.62
#2F278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F278F
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F278F#FFFFFF#000000##FFFFFF
##2F278F1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f278f;
/* rgb */ color: rgb(47, 39, 143);
/* oklch */ color: oklch(35.9% 0.163 277.7);
Tailwind
colors: {
  custom: {
    50: '#7562b1',
    500: '#2f278f',
    950: '#000000',
  },
}
SCSS
$custom: #2f278f;
$custom-light: #7562b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f278f",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 244.615,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35872,
    "c": 0.16343,
    "h": 277.7
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#2F278F
secondary
#B1B85A
accent
#E047D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F278F

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

Preview Lab → · Contrast checker → · Palette generator →

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