#2F3979#2F3979

#2F3979 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.3% C 0.109 H 273.3°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#2F3979
RGBrgb(47, 57, 121)
HSLhsl(232, 44%, 33%)
HSVhsv(232, 61%, 47%)
CMYKcmyk(61.2%, 52.9%, 0%, 52.5%)
CIE-LABlab(26.48, 16.93, -37.96)
CIE-LCHlch(26.48, 41.56, 294.04°)
OKLaboklab(37.27% 0.0062 -0.1086)
OKLCHoklch(37.27% 0.109 273.3)
XYZxyz(6.0855, 4.9106, 18.7126)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3979 #796F2F
analogous
#2F5E79 #2F3979 #4A2F79
triadic
#2F3979 #792F39 #39792F
tetradic
#2F3979 #792F5E #796F2F #2F794A
square
#2F3979 #792F5E #796F2F #2F794A
split-complementary
#2F3979 #794A2F #5E792F
monochromatic
#0D0F21 #1E244D #2F3979 #404EA5 #616EC2

Accessibility & contrast

On white

10.59
#2F3979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F3979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3979
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3979#FFFFFF#000000##FFFFFF
##2F39791.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427B
Deuteranopia (green-blind)
#073C78
Tritanopia (blue-blind)
#004853
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3979;
/* rgb */ color: rgb(47, 57, 121);
/* oklch */ color: oklch(37.3% 0.109 273.3);
Tailwind
colors: {
  custom: {
    50: '#6f6fa0',
    500: '#2f3979',
    950: '#000000',
  },
}
SCSS
$custom: #2f3979;
$custom-light: #6f6fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3979",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 121
  },
  "hsl": {
    "h": 231.892,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37265,
    "c": 0.10878,
    "h": 273.3
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#2F3979
secondary
#A89E5B
accent
#C354D4
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2F3979

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

Preview Lab → · Contrast checker → · Palette generator →

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