#2F247C#2F247C

#2F247C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.142 H 281.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#2F247C
RGBrgb(47, 36, 124)
HSLhsl(248, 55%, 31%)
HSVhsv(248, 71%, 49%)
CMYKcmyk(62.1%, 71%, 0%, 51.4%)
CIE-LABlab(21.29, 31.98, -48.29)
CIE-LCHlch(21.29, 57.92, 303.51°)
OKLaboklab(33.51% 0.0275 -0.1391)
OKLCHoklch(33.51% 0.142 281.2)
XYZxyz(5.4401, 3.3209, 19.4192)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F247C #717C24
analogous
#24457C #2F247C #5B247C
triadic
#2F247C #7C2F24 #247C2F
tetradic
#2F247C #7C2445 #717C24 #247C5B
square
#2F247C #7C2445 #717C24 #247C5B
split-complementary
#2F247C #7C5B24 #457C24
monochromatic
#0B081D #1D164D #2F247C #4132AB #5E4FCC

Accessibility & contrast

On white

12.62
#2F247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F247C
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F247C#FFFFFF#000000##FFFFFF
##2F247C1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f247c;
/* rgb */ color: rgb(47, 36, 124);
/* oklch */ color: oklch(33.5% 0.142 281.2);
Tailwind
colors: {
  custom: {
    50: '#7160a3',
    500: '#2f247c',
    950: '#000000',
  },
}
SCSS
$custom: #2f247c;
$custom-light: #7160a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f247c",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 247.5,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3351,
    "c": 0.14181,
    "h": 281.2
  },
  "luminance": 0.03321
}

Semantic roles & 50–950 ramp

primary
#2F247C
secondary
#A2AE4D
accent
#DE49CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F247C

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

Preview Lab → · Contrast checker → · Palette generator →

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