#2F299F#2F299F

#2F299F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.182 H 275.5°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2F299F
RGBrgb(47, 41, 159)
HSLhsl(243, 59%, 39%)
HSVhsv(243, 74%, 62%)
CMYKcmyk(70.4%, 74.2%, 0%, 37.6%)
CIE-LABlab(25.84, 40.78, -62.56)
CIE-LCHlch(25.84, 74.68, 303.09°)
OKLaboklab(37.82% 0.0175 -0.1808)
OKLCHoklch(37.82% 0.182 275.5)
XYZxyz(8.2212, 4.6927, 33.2667)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F299F #999F29
analogous
#295E9F #2F299F #6A299F
triadic
#2F299F #9F2F29 #299F2F
tetradic
#2F299F #9F295E #999F29 #299F6A
square
#2F299F #9F295E #999F29 #299F6A
split-complementary
#2F299F #9F6A29 #5E9F29
monochromatic
#12103E #211C6E #2F299F #4139CC #6F6AD9

Accessibility & contrast

On white

10.83
#2F299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F299F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F299F
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F299F#FFFFFF#000000##FFFFFF
##2F299F1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004B61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f299f;
/* rgb */ color: rgb(47, 41, 159);
/* oklch */ color: oklch(37.8% 0.182 275.5);
Tailwind
colors: {
  custom: {
    50: '#7864bd',
    500: '#2f299f',
    950: '#000000',
  },
}
SCSS
$custom: #2f299f;
$custom-light: #7864bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f299f",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 243.051,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37817,
    "c": 0.18169,
    "h": 275.5
  },
  "luminance": 0.04693
}

Semantic roles & 50–950 ramp

primary
#2F299F
secondary
#BABF65
accent
#E246DA
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F299F

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

Preview Lab → · Contrast checker → · Palette generator →

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