#2F278B#2F278B

#2F278B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.158 H 278.2°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#2F278B
RGBrgb(47, 39, 139)
HSLhsl(245, 56%, 35%)
HSVhsv(245, 72%, 55%)
CMYKcmyk(66.2%, 71.9%, 0%, 45.5%)
CIE-LABlab(23.40, 35.23, -54.26)
CIE-LCHlch(23.40, 64.69, 302.99°)
OKLaboklab(35.47% 0.0225 -0.1566)
OKLCHoklch(35.47% 0.158 278.2)
XYZxyz(6.5565, 3.9189, 24.8320)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F278B #838B27
analogous
#27518B #2F278B #61278B
triadic
#2F278B #8B2F27 #278B2F
tetradic
#2F278B #8B2751 #838B27 #278B61
square
#2F278B #8B2751 #838B27 #278B61
split-complementary
#2F278B #8B6127 #518B27
monochromatic
#0F0C2B #1F1A5B #2F278B #3F34BB #655BD1

Accessibility & contrast

On white

11.77
#2F278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F278B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F278B#FFFFFF#000000##FFFFFF
##2F278B1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f278b;
/* rgb */ color: rgb(47, 39, 139);
/* oklch */ color: oklch(35.5% 0.158 278.2);
Tailwind
colors: {
  custom: {
    50: '#7462ae',
    500: '#2f278b',
    950: '#000000',
  },
}
SCSS
$custom: #2f278b;
$custom-light: #7462ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f278b",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 244.8,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35469,
    "c": 0.1582,
    "h": 278.2
  },
  "luminance": 0.03919
}

Semantic roles & 50–950 ramp

primary
#2F278B
secondary
#AFB658
accent
#DF48D3
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F278B

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

Preview Lab → · Contrast checker → · Palette generator →

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