#2F379C#2F379C

#2F379C is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.162 H 273.0°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#2F379C
RGBrgb(47, 55, 156)
HSLhsl(236, 54%, 40%)
HSVhsv(236, 70%, 61%)
CMYKcmyk(69.9%, 64.7%, 0%, 38.8%)
CIE-LABlab(28.74, 31.09, -55.98)
CIE-LCHlch(28.74, 64.04, 299.05°)
OKLaboklab(39.82% 0.0085 -0.1616)
OKLCHoklch(39.82% 0.162 273)
XYZxyz(8.5372, 5.7362, 32.1033)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F379C #9C942F
analogous
#2F6E9C #2F379C #5D2F9C
triadic
#2F379C #9C2F37 #379C2F
tetradic
#2F379C #9C2F6E #9C942F #2F9C5D
square
#2F379C #9C2F6E #9C942F #2F9C5D
split-complementary
#2F379C #9C5D2F #6E9C2F
monochromatic
#13163E #21266D #2F379C #424CC6 #7178D4

Accessibility & contrast

On white

9.78
#2F379C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F379C
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F379C#FFFFFF#000000##FFFFFF
##2F379C1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f379c;
/* rgb */ color: rgb(47, 55, 156);
/* oklch */ color: oklch(39.8% 0.162 273.0);
Tailwind
colors: {
  custom: {
    50: '#766eba',
    500: '#2f379c',
    950: '#000000',
  },
}
SCSS
$custom: #2f379c;
$custom-light: #766eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f379c",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 156
  },
  "hsl": {
    "h": 235.596,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39821,
    "c": 0.16182,
    "h": 273
  },
  "luminance": 0.05737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F379C

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

Preview Lab → · Contrast checker → · Palette generator →

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