#2F3379#2F3379

#2F3379 is a dark, moderate blue. Relative luminance 0.044; OKLCH L 36.0% C 0.117 H 276.3°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#2F3379
RGBrgb(47, 51, 121)
HSLhsl(237, 44%, 33%)
HSVhsv(237, 61%, 47%)
CMYKcmyk(61.2%, 57.9%, 0%, 52.5%)
CIE-LABlab(24.80, 21.05, -40.66)
CIE-LCHlch(24.80, 45.79, 297.37°)
OKLaboklab(36.01% 0.0129 -0.1166)
OKLCHoklch(36.01% 0.117 276.3)
XYZxyz(5.8062, 4.3520, 18.6195)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3379 #79752F
analogous
#2F5879 #2F3379 #502F79
triadic
#2F3379 #792F33 #33792F
tetradic
#2F3379 #792F58 #79752F #2F7950
square
#2F3379 #792F58 #79752F #2F7950
split-complementary
#2F3379 #79502F #58792F
monochromatic
#0D0E21 #1E204D #2F3379 #4046A5 #6166C2

Accessibility & contrast

On white

11.23
#2F3379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F3379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3379
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3379#FFFFFF#000000##FFFFFF
##2F33791.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7B
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f3379;
/* rgb */ color: rgb(47, 51, 121);
/* oklch */ color: oklch(36.0% 0.117 276.3);
Tailwind
colors: {
  custom: {
    50: '#6f6aa0',
    500: '#2f3379',
    950: '#000000',
  },
}
SCSS
$custom: #2f3379;
$custom-light: #6f6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3379",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 121
  },
  "hsl": {
    "h": 236.757,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.36007,
    "c": 0.11733,
    "h": 276.3
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#2F3379
secondary
#A8A45B
accent
#CD54D4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2F3379

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

Preview Lab → · Contrast checker → · Palette generator →

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