#2F278A#2F278A

#2F278A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.157 H 278.3°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#2F278A
RGBrgb(47, 39, 138)
HSLhsl(245, 56%, 35%)
HSVhsv(245, 72%, 54%)
CMYKcmyk(65.9%, 71.7%, 0%, 45.9%)
CIE-LABlab(23.30, 34.89, -53.80)
CIE-LCHlch(23.30, 64.12, 302.96°)
OKLaboklab(35.37% 0.0227 -0.1552)
OKLCHoklch(35.37% 0.157 278.3)
XYZxyz(6.4838, 3.8898, 24.4490)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F278A #828A27
analogous
#27518A #2F278A #60278A
triadic
#2F278A #8A2F27 #278A2F
tetradic
#2F278A #8A2751 #828A27 #278A60
square
#2F278A #8A2751 #828A27 #278A60
split-complementary
#2F278A #8A6027 #518A27
monochromatic
#0E0C2B #1F1A5A #2F278A #3F34BA #645BD1

Accessibility & contrast

On white

11.81
#2F278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F278A
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F278A#FFFFFF#000000##FFFFFF
##2F278A1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f278a;
/* rgb */ color: rgb(47, 39, 138);
/* oklch */ color: oklch(35.4% 0.157 278.3);
Tailwind
colors: {
  custom: {
    50: '#7462ad',
    500: '#2f278a',
    950: '#000000',
  },
}
SCSS
$custom: #2f278a;
$custom-light: #7462ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f278a",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 244.848,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3537,
    "c": 0.15689,
    "h": 278.3
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#2F278A
secondary
#AEB657
accent
#DF49D3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F278A

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

Preview Lab → · Contrast checker → · Palette generator →

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