#2F379E#2F379E

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

Color values

HEX#2F379E
RGBrgb(47, 55, 158)
HSLhsl(236, 54%, 40%)
HSVhsv(236, 70%, 62%)
CMYKcmyk(70.3%, 65.2%, 0%, 38%)
CIE-LABlab(28.91, 31.81, -56.91)
CIE-LCHlch(28.91, 65.20, 299.20°)
OKLaboklab(40.01% 0.0084 -0.1643)
OKLCHoklch(40.01% 0.165 272.9)
XYZxyz(8.7080, 5.8045, 33.0026)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F379E #9E962F
analogous
#2F6E9E #2F379E #5F2F9E
triadic
#2F379E #9E2F37 #379E2F
tetradic
#2F379E #9E2F6E #9E962F #2F9E5F
square
#2F379E #9E2F6E #9E962F #2F9E5F
split-complementary
#2F379E #9E5F2F #6E9E2F
monochromatic
#131640 #21276F #2F379E #434DC7 #7279D5

Accessibility & contrast

On white

9.72
#2F379E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F379E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F379E
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F379E#FFFFFF#000000##FFFFFF
##2F379E1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#005265
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f379e;
/* rgb */ color: rgb(47, 55, 158);
/* oklch */ color: oklch(40.0% 0.165 272.9);
Tailwind
colors: {
  custom: {
    50: '#776ebc',
    500: '#2f379e',
    950: '#000000',
  },
}
SCSS
$custom: #2f379e;
$custom-light: #776ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f379e",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 158
  },
  "hsl": {
    "h": 235.676,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40005,
    "c": 0.16452,
    "h": 272.9
  },
  "luminance": 0.05805
}

Semantic roles & 50–950 ramp

primary
#2F379E
secondary
#BDB76C
accent
#D34ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F379E

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

Preview Lab → · Contrast checker → · Palette generator →

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