#2F379D#2F379D

#2F379D is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.163 H 273.0°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#2F379D
RGBrgb(47, 55, 157)
HSLhsl(236, 54%, 40%)
HSVhsv(236, 70%, 62%)
CMYKcmyk(70.1%, 65%, 0%, 38.4%)
CIE-LABlab(28.83, 31.45, -56.45)
CIE-LCHlch(28.83, 64.62, 299.13°)
OKLaboklab(39.91% 0.0084 -0.163)
OKLCHoklch(39.91% 0.163 273)
XYZxyz(8.6222, 5.7702, 32.5511)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F379D #9D952F
analogous
#2F6E9D #2F379D #5E2F9D
triadic
#2F379D #9D2F37 #379D2F
tetradic
#2F379D #9D2F6E #9D952F #2F9D5E
square
#2F379D #9D2F6E #9D952F #2F9D5E
split-complementary
#2F379D #9D5E2F #6E9D2F
monochromatic
#13163F #21276E #2F379D #434CC7 #7279D5

Accessibility & contrast

On white

9.75
#2F379D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2F379D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F379D
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F379D#FFFFFF#000000##FFFFFF
##2F379D1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#005165
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f379d;
/* rgb */ color: rgb(47, 55, 157);
/* oklch */ color: oklch(39.9% 0.163 273.0);
Tailwind
colors: {
  custom: {
    50: '#776ebb',
    500: '#2f379d',
    950: '#000000',
  },
}
SCSS
$custom: #2f379d;
$custom-light: #776ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f379d",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 157
  },
  "hsl": {
    "h": 235.636,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.39913,
    "c": 0.16318,
    "h": 273
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#2F379D
secondary
#BCB66B
accent
#D34BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F379D

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

Preview Lab → · Contrast checker → · Palette generator →

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