#2F295E#2F295E

#2F295E is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.8% C 0.091 H 285.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2F295E
RGBrgb(47, 41, 94)
HSLhsl(247, 39%, 26%)
HSVhsv(247, 56%, 37%)
CMYKcmyk(50%, 56.4%, 0%, 63.1%)
CIE-LABlab(20.04, 18.37, -30.89)
CIE-LCHlch(20.04, 35.94, 300.74°)
OKLaboklab(31.81% 0.0238 -0.088)
OKLCHoklch(31.81% 0.091 285.1)
XYZxyz(3.9850, 2.9982, 10.9562)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F295E #585E29
analogous
#293E5E #2F295E #4A295E
triadic
#2F295E #5E2F29 #295E2F
tetradic
#2F295E #5E293E #585E29 #295E4A
square
#2F295E #5E293E #585E29 #295E4A
split-complementary
#2F295E #5E4A29 #3E5E29
monochromatic
#0B0915 #1A1633 #2F295E #443C89 #5A4FB2

Accessibility & contrast

On white

13.13
#2F295E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F295E
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F295E#FFFFFF#000000##FFFFFF
##2F295E1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3260
Deuteranopia (green-blind)
#0D2F5D
Tritanopia (blue-blind)
#1F343F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f295e;
/* rgb */ color: rgb(47, 41, 94);
/* oklch */ color: oklch(31.8% 0.091 285.1);
Tailwind
colors: {
  custom: {
    50: '#6b628c',
    500: '#2f295e',
    950: '#000000',
  },
}
SCSS
$custom: #2f295e;
$custom-light: #6b628c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f295e",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 94
  },
  "hsl": {
    "h": 246.792,
    "s": 39.259,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31809,
    "c": 0.09112,
    "h": 285.1
  },
  "luminance": 0.02998
}

Semantic roles & 50–950 ramp

primary
#2F295E
secondary
#8A9152
accent
#CF59C2
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #2F295E

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

Preview Lab → · Contrast checker → · Palette generator →

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