#2F295F#2F295F

#2F295F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.9% C 0.093 H 284.9°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#2F295F
RGBrgb(47, 41, 95)
HSLhsl(247, 40%, 27%)
HSVhsv(247, 57%, 37%)
CMYKcmyk(50.5%, 56.8%, 0%, 62.7%)
CIE-LABlab(20.11, 18.71, -31.44)
CIE-LCHlch(20.11, 36.58, 300.76°)
OKLaboklab(31.89% 0.0238 -0.0896)
OKLCHoklch(31.89% 0.093 284.9)
XYZxyz(4.0302, 3.0163, 11.1941)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F295F #595F29
analogous
#293E5F #2F295F #4A295F
triadic
#2F295F #5F2F29 #295F2F
tetradic
#2F295F #5F293E #595F29 #295F4A
square
#2F295F #5F293E #595F29 #295F4A
split-complementary
#2F295F #5F4A29 #3E5F29
monochromatic
#0B0915 #1A1734 #2F295F #443B8A #5A4FB3

Accessibility & contrast

On white

13.10
#2F295F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F295F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F295F
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F295F#FFFFFF#000000##FFFFFF
##2F295F1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3261
Deuteranopia (green-blind)
#0B2F5E
Tritanopia (blue-blind)
#1F353F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f295f;
/* rgb */ color: rgb(47, 41, 95);
/* oklch */ color: oklch(31.9% 0.093 284.9);
Tailwind
colors: {
  custom: {
    50: '#6b628d',
    500: '#2f295f',
    950: '#000000',
  },
}
SCSS
$custom: #2f295f;
$custom-light: #6b628d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f295f",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 95
  },
  "hsl": {
    "h": 246.667,
    "s": 39.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31886,
    "c": 0.09269,
    "h": 284.9
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#2F295F
secondary
#8B9252
accent
#D058C2
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2F295F

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

Preview Lab → · Contrast checker → · Palette generator →

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