#2F296C#2F296C

#2F296C is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.9% C 0.112 H 282.3°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2F296C
RGBrgb(47, 41, 108)
HSLhsl(245, 45%, 29%)
HSVhsv(245, 62%, 42%)
CMYKcmyk(56.5%, 62%, 0%, 57.6%)
CIE-LABlab(21.10, 23.22, -38.32)
CIE-LCHlch(21.10, 44.81, 301.21°)
OKLaboklab(32.94% 0.024 -0.1098)
OKLCHoklch(32.94% 0.112 282.3)
XYZxyz(4.6712, 3.2726, 14.5700)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F296C #666C29
analogous
#29456C #2F296C #51296C
triadic
#2F296C #6C2F29 #296C2F
tetradic
#2F296C #6C2945 #666C29 #296C51
square
#2F296C #6C2945 #666C29 #296C51
split-complementary
#2F296C #6C5129 #456C29
monochromatic
#0A0816 #1C1840 #2F296C #423A98 #5C52BD

Accessibility & contrast

On white

12.69
#2F296C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F296C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F296C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F296C#FFFFFF#000000##FFFFFF
##2F296C1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356E
Deuteranopia (green-blind)
#00306B
Tritanopia (blue-blind)
#143946
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f296c;
/* rgb */ color: rgb(47, 41, 108);
/* oklch */ color: oklch(32.9% 0.112 282.3);
Tailwind
colors: {
  custom: {
    50: '#6e6397',
    500: '#2f296c',
    950: '#000000',
  },
}
SCSS
$custom: #2f296c;
$custom-light: #6e6397;
$custom-dark: #000000;
JSON
{
  "hex": "#2f296c",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 108
  },
  "hsl": {
    "h": 245.373,
    "s": 44.966,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32941,
    "c": 0.11243,
    "h": 282.3
  },
  "luminance": 0.03273
}

Semantic roles & 50–950 ramp

primary
#2F296C
secondary
#989E53
accent
#D553C9
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2F296C

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

Preview Lab → · Contrast checker → · Palette generator →

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