#2F478F#2F478F

#2F478F is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.123 H 267.1°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2F478F
RGBrgb(47, 71, 143)
HSLhsl(225, 51%, 37%)
HSVhsv(225, 67%, 56%)
CMYKcmyk(67.1%, 50.3%, 0%, 43.9%)
CIE-LABlab(32.02, 15.58, -42.72)
CIE-LCHlch(32.02, 45.47, 290.04°)
OKLaboklab(41.96% -0.0061 -0.1224)
OKLCHoklch(41.96% 0.123 267.1)
XYZxyz(8.3817, 7.0932, 26.9087)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F478F #8F772F
analogous
#2F778F #2F478F #472F8F
triadic
#2F478F #8F2F47 #478F2F
tetradic
#2F478F #8F2F77 #8F772F #2F8F47
square
#2F478F #8F2F77 #8F772F #2F8F47
split-complementary
#2F478F #8F472F #778F2F
monochromatic
#111933 #203061 #2F478F #3E5EBD #6A83CE

Accessibility & contrast

On white

8.68
#2F478F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F478F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F478F
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F478F#FFFFFF#000000##FFFFFF
##2F478F1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205092
Deuteranopia (green-blind)
#07478E
Tritanopia (blue-blind)
#005864
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f478f;
/* rgb */ color: rgb(47, 71, 143);
/* oklch */ color: oklch(42.0% 0.123 267.1);
Tailwind
colors: {
  custom: {
    50: '#7379b0',
    500: '#2f478f',
    950: '#000000',
  },
}
SCSS
$custom: #2f478f;
$custom-light: #7379b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f478f",
  "rgb": {
    "r": 47,
    "g": 71,
    "b": 143
  },
  "hsl": {
    "h": 225,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41956,
    "c": 0.12256,
    "h": 267.1
  },
  "luminance": 0.07094
}

Semantic roles & 50–950 ramp

primary
#2F478F
secondary
#B5A165
accent
#B74EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2F478F

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

Preview Lab → · Contrast checker → · Palette generator →

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