#2F247A#2F247A

#2F247A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.139 H 281.5°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2F247A
RGBrgb(47, 36, 122)
HSLhsl(248, 54%, 31%)
HSVhsv(248, 70%, 48%)
CMYKcmyk(61.5%, 70.5%, 0%, 52.2%)
CIE-LABlab(21.10, 31.30, -47.33)
CIE-LCHlch(21.10, 56.74, 303.48°)
OKLaboklab(33.32% 0.0278 -0.1363)
OKLCHoklch(33.32% 0.139 281.5)
XYZxyz(5.3149, 3.2709, 18.7598)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F247A #6F7A24
analogous
#24447A #2F247A #5A247A
triadic
#2F247A #7A2F24 #247A2F
tetradic
#2F247A #7A2444 #6F7A24 #247A5A
square
#2F247A #7A2444 #6F7A24 #247A5A
split-complementary
#2F247A #7A5A24 #447A24
monochromatic
#0B081B #1D164B #2F247A #4132A9 #5E4ECB

Accessibility & contrast

On white

12.69
#2F247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2F247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F247A
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F247A#FFFFFF#000000##FFFFFF
##2F247A1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f247a;
/* rgb */ color: rgb(47, 36, 122);
/* oklch */ color: oklch(33.3% 0.139 281.5);
Tailwind
colors: {
  custom: {
    50: '#7160a1',
    500: '#2f247a',
    950: '#000000',
  },
}
SCSS
$custom: #2f247a;
$custom-light: #7160a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f247a",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 247.674,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33316,
    "c": 0.1391,
    "h": 281.5
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#2F247A
secondary
#A0AC4D
accent
#DE4ACB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F247A

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

Preview Lab → · Contrast checker → · Palette generator →

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