#2F479C#2F479C

#2F479C is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.9% C 0.141 H 268.1°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#2F479C
RGBrgb(47, 71, 156)
HSLhsl(227, 54%, 40%)
HSVhsv(227, 70%, 61%)
CMYKcmyk(69.9%, 54.5%, 0%, 38.8%)
CIE-LABlab(32.94, 20.47, -49.14)
CIE-LCHlch(32.94, 53.23, 292.61°)
OKLaboklab(42.95% -0.0048 -0.1413)
OKLCHoklch(42.95% 0.141 268.1)
XYZxyz(9.4242, 7.5102, 32.3990)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F479C #9C842F
analogous
#2F7E9C #2F479C #4D2F9C
triadic
#2F479C #9C2F47 #479C2F
tetradic
#2F479C #9C2F7E #9C842F #2F9C4D
square
#2F479C #9C2F7E #9C842F #2F9C4D
split-complementary
#2F479C #9C4D2F #7E9C2F
monochromatic
#131C3E #21326D #2F479C #425FC6 #7187D4

Accessibility & contrast

On white

8.39
#2F479C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F479C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F479C
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F479C#FFFFFF#000000##FFFFFF
##2F479C1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08539F
Deuteranopia (green-blind)
#00499A
Tritanopia (blue-blind)
#005B6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f479c;
/* rgb */ color: rgb(47, 71, 156);
/* oklch */ color: oklch(42.9% 0.141 268.1);
Tailwind
colors: {
  custom: {
    50: '#7579ba',
    500: '#2f479c',
    950: '#000000',
  },
}
SCSS
$custom: #2f479c;
$custom-light: #7579ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f479c",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 156
  },
  "hsl": {
    "h": 226.789,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42949,
    "c": 0.14139,
    "h": 268.1
  },
  "luminance": 0.07511
}

Semantic roles & 50–950 ramp

primary
#2F479C
secondary
#BCAA6B
accent
#BD4BDD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2F479C

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

Preview Lab → · Contrast checker → · Palette generator →

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