#2F247E#2F247E

#2F247E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.144 H 280.8°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2F247E
RGBrgb(47, 36, 126)
HSLhsl(247, 56%, 32%)
HSVhsv(247, 71%, 49%)
CMYKcmyk(62.7%, 71.4%, 0%, 50.6%)
CIE-LABlab(21.48, 32.65, -49.25)
CIE-LCHlch(21.48, 59.09, 303.54°)
OKLaboklab(33.71% 0.0272 -0.1419)
OKLCHoklch(33.71% 0.145 280.8)
XYZxyz(5.5679, 3.3720, 20.0921)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F247E #737E24
analogous
#24467E #2F247E #5C247E
triadic
#2F247E #7E2F24 #247E2F
tetradic
#2F247E #7E2446 #737E24 #247E5C
square
#2F247E #7E2446 #737E24 #247E5C
split-complementary
#2F247E #7E5C24 #467E24
monochromatic
#0B091F #1D164E #2F247E #4132AE #5F50CD

Accessibility & contrast

On white

12.54
#2F247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F247E
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F247E#FFFFFF#000000##FFFFFF
##2F247E1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f247e;
/* rgb */ color: rgb(47, 36, 126);
/* oklch */ color: oklch(33.7% 0.144 280.8);
Tailwind
colors: {
  custom: {
    50: '#7260a4',
    500: '#2f247e',
    950: '#000000',
  },
}
SCSS
$custom: #2f247e;
$custom-light: #7260a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f247e",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 247.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33705,
    "c": 0.1445,
    "h": 280.8
  },
  "luminance": 0.03372
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F247E

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

Preview Lab → · Contrast checker → · Palette generator →

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