#2F297C#2F297C

#2F297C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.135 H 279.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2F297C
RGBrgb(47, 41, 124)
HSLhsl(244, 50%, 32%)
HSVhsv(244, 67%, 49%)
CMYKcmyk(62.1%, 66.9%, 0%, 51.4%)
CIE-LABlab(22.46, 28.80, -46.37)
CIE-LCHlch(22.46, 54.59, 301.85°)
OKLaboklab(34.36% 0.023 -0.1335)
OKLCHoklch(34.36% 0.135 279.8)
XYZxyz(5.6022, 3.6450, 19.4732)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F297C #767C29
analogous
#294D7C #2F297C #58297C
triadic
#2F297C #7C2F29 #297C2F
tetradic
#2F297C #7C294D #767C29 #297C58
square
#2F297C #7C294D #767C29 #297C58
split-complementary
#2F297C #7C5829 #4D7C29
monochromatic
#0C0B20 #1E1A4E #2F297C #4038AA #6058C8

Accessibility & contrast

On white

12.15
#2F297C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2F297C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F297C
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F297C#FFFFFF#000000##FFFFFF
##2F297C1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f297c;
/* rgb */ color: rgb(47, 41, 124);
/* oklch */ color: oklch(34.4% 0.135 279.8);
Tailwind
colors: {
  custom: {
    50: '#7163a3',
    500: '#2f297c',
    950: '#000000',
  },
}
SCSS
$custom: #2f297c;
$custom-light: #7163a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f297c",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 244.337,
    "s": 50.303,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3436,
    "c": 0.13543,
    "h": 279.8
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#2F297C
secondary
#A7AD54
accent
#DA4ED0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F297C

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

Preview Lab → · Contrast checker → · Palette generator →

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