#2F379A#2F379A

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

Color values

HEX#2F379A
RGBrgb(47, 55, 154)
HSLhsl(236, 53%, 39%)
HSVhsv(236, 69%, 60%)
CMYKcmyk(69.5%, 64.3%, 0%, 39.6%)
CIE-LABlab(28.56, 30.37, -55.05)
CIE-LCHlch(28.56, 62.87, 298.88°)
OKLaboklab(39.64% 0.0086 -0.1589)
OKLCHoklch(39.64% 0.159 273.1)
XYZxyz(8.3693, 5.6690, 31.2188)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F379A #9A922F
analogous
#2F6D9A #2F379A #5D2F9A
triadic
#2F379A #9A2F37 #379A2F
tetradic
#2F379A #9A2F6D #9A922F #2F9A5D
square
#2F379A #9A2F6D #9A922F #2F9A5D
split-complementary
#2F379A #9A5D2F #6D9A2F
monochromatic
#12163C #21266B #2F379A #414BC5 #7077D3

Accessibility & contrast

On white

9.84
#2F379A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F379A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F379A
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F379A#FFFFFF#000000##FFFFFF
##2F379A1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#005063
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f379a;
/* rgb */ color: rgb(47, 55, 154);
/* oklch */ color: oklch(39.6% 0.159 273.1);
Tailwind
colors: {
  custom: {
    50: '#766eb9',
    500: '#2f379a',
    950: '#000000',
  },
}
SCSS
$custom: #2f379a;
$custom-light: #766eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f379a",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 154
  },
  "hsl": {
    "h": 235.514,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39638,
    "c": 0.1591,
    "h": 273.1
  },
  "luminance": 0.0567
}

Semantic roles & 50–950 ramp

primary
#2F379A
secondary
#BBB56A
accent
#D24BDD
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #2F379A

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

Preview Lab → · Contrast checker → · Palette generator →

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