#2F296F#2F296F

#2F296F is a dark, moderate blue. Relative luminance 0.033; OKLCH L 33.2% C 0.117 H 281.8°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2F296F
RGBrgb(47, 41, 111)
HSLhsl(245, 46%, 30%)
HSVhsv(245, 63%, 44%)
CMYKcmyk(57.7%, 63.1%, 0%, 56.5%)
CIE-LABlab(21.35, 24.26, -39.87)
CIE-LCHlch(21.35, 46.67, 301.32°)
OKLaboklab(33.2% 0.0239 -0.1144)
OKLCHoklch(33.2% 0.117 281.8)
XYZxyz(4.8336, 3.3376, 15.4254)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F296F #696F29
analogous
#29466F #2F296F #52296F
triadic
#2F296F #6F2F29 #296F2F
tetradic
#2F296F #6F2946 #696F29 #296F52
square
#2F296F #6F2946 #696F29 #296F52
split-complementary
#2F296F #6F5229 #466F29
monochromatic
#090816 #1C1842 #2F296F #423A9C #5C53BF

Accessibility & contrast

On white

12.59
#2F296F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F296F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F296F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F296F#FFFFFF#000000##FFFFFF
##2F296F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#00316E
Tritanopia (blue-blind)
#113A47
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f296f;
/* rgb */ color: rgb(47, 41, 111);
/* oklch */ color: oklch(33.2% 0.117 281.8);
Tailwind
colors: {
  custom: {
    50: '#6e6399',
    500: '#2f296f',
    950: '#000000',
  },
}
SCSS
$custom: #2f296f;
$custom-light: #6e6399;
$custom-dark: #000000;
JSON
{
  "hex": "#2f296f",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 111
  },
  "hsl": {
    "h": 245.143,
    "s": 46.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33198,
    "c": 0.11684,
    "h": 281.8
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#2F296F
secondary
#9AA153
accent
#D652CA
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F296F

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

Preview Lab → · Contrast checker → · Palette generator →

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