#2F275C#2F275C

#2F275C is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.2% C 0.091 H 286.8°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#2F275C
RGBrgb(47, 39, 92)
HSLhsl(249, 40%, 26%)
HSVhsv(249, 58%, 36%)
CMYKcmyk(48.9%, 57.6%, 0%, 63.9%)
CIE-LABlab(19.34, 19.07, -30.69)
CIE-LCHlch(19.34, 36.13, 301.86°)
OKLaboklab(31.25% 0.0264 -0.0874)
OKLCHoklch(31.25% 0.091 286.8)
XYZxyz(3.8290, 2.8279, 10.4672)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F275C #545C27
analogous
#27395C #2F275C #49275C
triadic
#2F275C #5C2F27 #275C2F
tetradic
#2F275C #5C2739 #545C27 #275C49
square
#2F275C #5C2739 #545C27 #275C49
split-complementary
#2F275C #5C4927 #395C27
monochromatic
#0B0915 #191531 #2F275C #453987 #5B4BB2

Accessibility & contrast

On white

13.41
#2F275C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2F275C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F275C
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F275C#FFFFFF#000000##FFFFFF
##2F275C1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C305E
Deuteranopia (green-blind)
#0B2D5B
Tritanopia (blue-blind)
#21323D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f275c;
/* rgb */ color: rgb(47, 39, 92);
/* oklch */ color: oklch(31.2% 0.091 286.8);
Tailwind
colors: {
  custom: {
    50: '#6b618a',
    500: '#2f275c',
    950: '#000000',
  },
}
SCSS
$custom: #2f275c;
$custom-light: #6b618a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f275c",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 92
  },
  "hsl": {
    "h": 249.057,
    "s": 40.458,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31245,
    "c": 0.09126,
    "h": 286.8
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#2F275C
secondary
#858F50
accent
#D057BE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2F275C

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

Preview Lab → · Contrast checker → · Palette generator →

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