#2F297E#2F297E

#2F297E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.138 H 279.5°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2F297E
RGBrgb(47, 41, 126)
HSLhsl(244, 51%, 33%)
HSVhsv(244, 67%, 49%)
CMYKcmyk(62.7%, 67.5%, 0%, 50.6%)
CIE-LABlab(22.64, 29.50, -47.34)
CIE-LCHlch(22.64, 55.78, 301.93°)
OKLaboklab(34.54% 0.0228 -0.1363)
OKLCHoklch(34.54% 0.138 279.5)
XYZxyz(5.7299, 3.6962, 20.1461)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F297E #787E29
analogous
#294E7E #2F297E #59297E
triadic
#2F297E #7E2F29 #297E2F
tetradic
#2F297E #7E294E #787E29 #297E59
square
#2F297E #7E294E #787E29 #297E59
split-complementary
#2F297E #7E5929 #4E7E29
monochromatic
#0D0B22 #1E1A50 #2F297E #4038AC #6059C9

Accessibility & contrast

On white

12.07
#2F297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F297E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F297E
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F297E#FFFFFF#000000##FFFFFF
##2F297E1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f297e;
/* rgb */ color: rgb(47, 41, 126);
/* oklch */ color: oklch(34.5% 0.138 279.5);
Tailwind
colors: {
  custom: {
    50: '#7163a4',
    500: '#2f297e',
    950: '#000000',
  },
}
SCSS
$custom: #2f297e;
$custom-light: #7163a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f297e",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 244.235,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34545,
    "c": 0.13822,
    "h": 279.5
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#2F297E
secondary
#A8AE55
accent
#DA4DD0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F297E

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

Preview Lab → · Contrast checker → · Palette generator →

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