#2F379F#2F379F

#2F379F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.166 H 272.9°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#2F379F
RGBrgb(47, 55, 159)
HSLhsl(236, 54%, 40%)
HSVhsv(236, 70%, 62%)
CMYKcmyk(70.4%, 65.4%, 0%, 37.6%)
CIE-LABlab(29.00, 32.17, -57.37)
CIE-LCHlch(29.00, 65.77, 299.28°)
OKLaboklab(40.1% 0.0083 -0.1657)
OKLCHoklch(40.1% 0.166 272.9)
XYZxyz(8.7944, 5.8391, 33.4578)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F379F #9F972F
analogous
#2F6F9F #2F379F #5F2F9F
triadic
#2F379F #9F2F37 #379F2F
tetradic
#2F379F #9F2F6F #9F972F #2F9F5F
square
#2F379F #9F2F6F #9F972F #2F9F5F
split-complementary
#2F379F #9F5F2F #6F9F2F
monochromatic
#131641 #212770 #2F379F #444DC8 #737AD6

Accessibility & contrast

On white

9.69
#2F379F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2F379F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F379F
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F379F#FFFFFF#000000##FFFFFF
##2F379F1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f379f;
/* rgb */ color: rgb(47, 55, 159);
/* oklch */ color: oklch(40.1% 0.166 272.9);
Tailwind
colors: {
  custom: {
    50: '#776ebc',
    500: '#2f379f',
    950: '#000000',
  },
}
SCSS
$custom: #2f379f;
$custom-light: #776ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f379f",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 159
  },
  "hsl": {
    "h": 235.714,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40098,
    "c": 0.16588,
    "h": 272.9
  },
  "luminance": 0.0584
}

Semantic roles & 50–950 ramp

primary
#2F379F
secondary
#BDB86D
accent
#D34ADE
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F379F

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

Preview Lab → · Contrast checker → · Palette generator →

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