#2F299D#2F299D

#2F299D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.179 H 275.7°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#2F299D
RGBrgb(47, 41, 157)
HSLhsl(243, 59%, 39%)
HSVhsv(243, 74%, 62%)
CMYKcmyk(70.1%, 73.9%, 0%, 38.4%)
CIE-LABlab(25.63, 40.11, -61.68)
CIE-LCHlch(25.63, 73.58, 303.03°)
OKLaboklab(37.61% 0.0179 -0.1783)
OKLCHoklch(37.61% 0.179 275.7)
XYZxyz(8.0490, 4.6238, 32.3601)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F299D #979D29
analogous
#295D9D #2F299D #69299D
triadic
#2F299D #9D2F29 #299D2F
tetradic
#2F299D #9D295D #979D29 #299D69
square
#2F299D #9D295D #979D29 #299D69
split-complementary
#2F299D #9D6929 #5D9D29
monochromatic
#12103C #201C6C #2F299D #4038CB #6E69D8

Accessibility & contrast

On white

10.91
#2F299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F299D
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F299D#FFFFFF#000000##FFFFFF
##2F299D1.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#004A60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f299d;
/* rgb */ color: rgb(47, 41, 157);
/* oklch */ color: oklch(37.6% 0.179 275.7);
Tailwind
colors: {
  custom: {
    50: '#7864bb',
    500: '#2f299d',
    950: '#000000',
  },
}
SCSS
$custom: #2f299d;
$custom-light: #7864bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f299d",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 243.103,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37609,
    "c": 0.17918,
    "h": 275.7
  },
  "luminance": 0.04625
}

Semantic roles & 50–950 ramp

primary
#2F299D
secondary
#B9BE64
accent
#E246DA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F299D

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

Preview Lab → · Contrast checker → · Palette generator →

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