#2F247D#2F247D

#2F247D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.143 H 281.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#2F247D
RGBrgb(47, 36, 125)
HSLhsl(247, 55%, 32%)
HSVhsv(247, 71%, 49%)
CMYKcmyk(62.4%, 71.2%, 0%, 51%)
CIE-LABlab(21.38, 32.31, -48.77)
CIE-LCHlch(21.38, 58.50, 303.53°)
OKLaboklab(33.61% 0.0274 -0.1405)
OKLCHoklch(33.61% 0.143 281)
XYZxyz(5.5037, 3.3464, 19.7540)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F247D #727D24
analogous
#24467D #2F247D #5C247D
triadic
#2F247D #7D2F24 #247D2F
tetradic
#2F247D #7D2446 #727D24 #247D5C
square
#2F247D #7D2446 #727D24 #247D5C
split-complementary
#2F247D #7D5C24 #467D24
monochromatic
#0B091E #1D164D #2F247D #4132AD #5F4FCC

Accessibility & contrast

On white

12.58
#2F247D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2F247D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F247D
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F247D#FFFFFF#000000##FFFFFF
##2F247D1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f247d;
/* rgb */ color: rgb(47, 36, 125);
/* oklch */ color: oklch(33.6% 0.143 281.0);
Tailwind
colors: {
  custom: {
    50: '#7160a4',
    500: '#2f247d',
    950: '#000000',
  },
}
SCSS
$custom: #2f247d;
$custom-light: #7160a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f247d",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 125
  },
  "hsl": {
    "h": 247.416,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33607,
    "c": 0.14316,
    "h": 281
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#2F247D
secondary
#A3AF4D
accent
#DF49CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F247D

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

Preview Lab → · Contrast checker → · Palette generator →

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