#2F278E#2F278E

#2F278E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.162 H 277.8°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2F278E
RGBrgb(47, 39, 142)
HSLhsl(245, 57%, 35%)
HSVhsv(245, 73%, 56%)
CMYKcmyk(66.9%, 72.5%, 0%, 44.3%)
CIE-LABlab(23.70, 36.24, -55.64)
CIE-LCHlch(23.70, 66.40, 303.08°)
OKLaboklab(35.77% 0.022 -0.1606)
OKLCHoklch(35.77% 0.162 277.8)
XYZxyz(6.7787, 4.0078, 26.0023)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F278E #868E27
analogous
#27528E #2F278E #62278E
triadic
#2F278E #8E2F27 #278E2F
tetradic
#2F278E #8E2752 #868E27 #278E62
square
#2F278E #8E2752 #868E27 #278E62
split-complementary
#2F278E #8E6227 #528E27
monochromatic
#0F0D2E #1F1A5E #2F278E #3F34BE #665DD2

Accessibility & contrast

On white

11.66
#2F278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F278E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F278E#FFFFFF#000000##FFFFFF
##2F278E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f278e;
/* rgb */ color: rgb(47, 39, 142);
/* oklch */ color: oklch(35.8% 0.162 277.8);
Tailwind
colors: {
  custom: {
    50: '#7562b0',
    500: '#2f278e',
    950: '#000000',
  },
}
SCSS
$custom: #2f278e;
$custom-light: #7562b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f278e",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 244.66,
    "s": 56.906,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35771,
    "c": 0.16213,
    "h": 277.8
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#2F278E
secondary
#B0B859
accent
#E048D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2F278E

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

Preview Lab → · Contrast checker → · Palette generator →

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