#2F478E#2F478E

#2F478E is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.9% C 0.121 H 267.0°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2F478E
RGBrgb(47, 71, 142)
HSLhsl(225, 50%, 37%)
HSVhsv(225, 67%, 56%)
CMYKcmyk(66.9%, 50%, 0%, 44.3%)
CIE-LABlab(31.95, 15.20, -42.22)
CIE-LCHlch(31.95, 44.87, 289.81°)
OKLaboklab(41.88% -0.0063 -0.1209)
OKLCHoklch(41.88% 0.121 267)
XYZxyz(8.3063, 7.0630, 26.5115)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F478E #8E762F
analogous
#2F778E #2F478E #462F8E
triadic
#2F478E #8E2F47 #478E2F
tetradic
#2F478E #8E2F77 #8E762F #2F8E46
square
#2F478E #8E2F77 #8E762F #2F8E46
split-complementary
#2F478E #8E462F #778E2F
monochromatic
#111932 #203060 #2F478E #3E5EBC #6A83CE

Accessibility & contrast

On white

8.70
#2F478E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F478E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F478E
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F478E#FFFFFF#000000##FFFFFF
##2F478E1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#0A478D
Tritanopia (blue-blind)
#005763
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f478e;
/* rgb */ color: rgb(47, 71, 142);
/* oklch */ color: oklch(41.9% 0.121 267.0);
Tailwind
colors: {
  custom: {
    50: '#7279af',
    500: '#2f478e',
    950: '#000000',
  },
}
SCSS
$custom: #2f478e;
$custom-light: #7279af;
$custom-dark: #000000;
JSON
{
  "hex": "#2f478e",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 142
  },
  "hsl": {
    "h": 224.842,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41882,
    "c": 0.12109,
    "h": 267
  },
  "luminance": 0.07064
}

Semantic roles & 50–950 ramp

primary
#2F478E
secondary
#B5A064
accent
#B64EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2F478E

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

Preview Lab → · Contrast checker → · Palette generator →

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