#2F379B#2F379B

#2F379B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.7% C 0.160 H 273.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#2F379B
RGBrgb(47, 55, 155)
HSLhsl(236, 53%, 40%)
HSVhsv(236, 70%, 61%)
CMYKcmyk(69.7%, 64.5%, 0%, 39.2%)
CIE-LABlab(28.65, 30.73, -55.52)
CIE-LCHlch(28.65, 63.45, 298.96°)
OKLaboklab(39.73% 0.0086 -0.1602)
OKLCHoklch(39.73% 0.16 273.1)
XYZxyz(8.4529, 5.7025, 31.6592)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F379B #9B932F
analogous
#2F6D9B #2F379B #5D2F9B
triadic
#2F379B #9B2F37 #379B2F
tetradic
#2F379B #9B2F6D #9B932F #2F9B5D
square
#2F379B #9B2F6D #9B932F #2F9B5D
split-complementary
#2F379B #9B5D2F #6D9B2F
monochromatic
#13163D #21266C #2F379B #424BC6 #7178D4

Accessibility & contrast

On white

9.81
#2F379B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F379B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F379B
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F379B#FFFFFF#000000##FFFFFF
##2F379B1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#005164
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f379b;
/* rgb */ color: rgb(47, 55, 155);
/* oklch */ color: oklch(39.7% 0.160 273.1);
Tailwind
colors: {
  custom: {
    50: '#766eb9',
    500: '#2f379b',
    950: '#000000',
  },
}
SCSS
$custom: #2f379b;
$custom-light: #766eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f379b",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 155
  },
  "hsl": {
    "h": 235.556,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39729,
    "c": 0.16046,
    "h": 273.1
  },
  "luminance": 0.05703
}

Semantic roles & 50–950 ramp

primary
#2F379B
secondary
#BBB56A
accent
#D24BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F379B

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

Preview Lab → · Contrast checker → · Palette generator →

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