#2F247F#2F247F

#2F247F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.146 H 280.7°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#2F247F
RGBrgb(47, 36, 127)
HSLhsl(247, 56%, 32%)
HSVhsv(247, 72%, 50%)
CMYKcmyk(63%, 71.7%, 0%, 50.2%)
CIE-LABlab(21.57, 32.99, -49.73)
CIE-LCHlch(21.57, 59.67, 303.56°)
OKLaboklab(33.8% 0.027 -0.1433)
OKLCHoklch(33.8% 0.146 280.7)
XYZxyz(5.6327, 3.3980, 20.4336)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F247F #747F24
analogous
#24477F #2F247F #5D247F
triadic
#2F247F #7F2F24 #247F2F
tetradic
#2F247F #7F2447 #747F24 #247F5D
square
#2F247F #7F2447 #747F24 #247F5D
split-complementary
#2F247F #7F5D24 #477F24
monochromatic
#0C0920 #1D164F #2F247F #4132AF #5F50CD

Accessibility & contrast

On white

12.50
#2F247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F247F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F247F#FFFFFF#000000##FFFFFF
##2F247F1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f247f;
/* rgb */ color: rgb(47, 36, 127);
/* oklch */ color: oklch(33.8% 0.146 280.7);
Tailwind
colors: {
  custom: {
    50: '#7260a5',
    500: '#2f247f',
    950: '#000000',
  },
}
SCSS
$custom: #2f247f;
$custom-light: #7260a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f247f",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 247.253,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33803,
    "c": 0.14584,
    "h": 280.7
  },
  "luminance": 0.03398
}

Semantic roles & 50–950 ramp

primary
#2F247F
secondary
#A5B14E
accent
#DF49CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #2F247F

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

Preview Lab → · Contrast checker → · Palette generator →

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