#2F3779#2F3779

#2F3779 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.8% C 0.112 H 274.4°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#2F3779
RGBrgb(47, 55, 121)
HSLhsl(234, 44%, 33%)
HSVhsv(234, 61%, 47%)
CMYKcmyk(61.2%, 54.5%, 0%, 52.5%)
CIE-LABlab(25.91, 18.30, -38.87)
CIE-LCHlch(25.91, 42.96, 295.22°)
OKLaboklab(36.84% 0.0085 -0.1113)
OKLCHoklch(36.84% 0.112 274.4)
XYZxyz(5.9885, 4.7167, 18.6803)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3779 #79712F
analogous
#2F5C79 #2F3779 #4C2F79
triadic
#2F3779 #792F37 #37792F
tetradic
#2F3779 #792F5C #79712F #2F794C
square
#2F3779 #792F5C #79712F #2F794C
split-complementary
#2F3779 #794C2F #5C792F
monochromatic
#0D0F21 #1E234D #2F3779 #404BA5 #616BC2

Accessibility & contrast

On white

10.81
#2F3779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F3779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3779
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3779#FFFFFF#000000##FFFFFF
##2F37791.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10417B
Deuteranopia (green-blind)
#003A78
Tritanopia (blue-blind)
#004652
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f3779;
/* rgb */ color: rgb(47, 55, 121);
/* oklch */ color: oklch(36.8% 0.112 274.4);
Tailwind
colors: {
  custom: {
    50: '#6f6da0',
    500: '#2f3779',
    950: '#000000',
  },
}
SCSS
$custom: #2f3779;
$custom-light: #6f6da0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3779",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 121
  },
  "hsl": {
    "h": 233.514,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36838,
    "c": 0.11163,
    "h": 274.4
  },
  "luminance": 0.04717
}

Semantic roles & 50–950 ramp

primary
#2F3779
secondary
#A8A05B
accent
#C654D4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08070F
muted
#7B7A7E

Preview Lab

Preview with #2F3779

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

Preview Lab → · Contrast checker → · Palette generator →

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