#2F427A#2F427A

#2F427A is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.3% C 0.098 H 267.7°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#2F427A
RGBrgb(47, 66, 122)
HSLhsl(225, 44%, 33%)
HSVhsv(225, 61%, 48%)
CMYKcmyk(61.5%, 45.9%, 0%, 52.2%)
CIE-LABlab(29.17, 11.14, -34.27)
CIE-LCHlch(29.17, 36.03, 288.00°)
OKLaboklab(39.34% -0.004 -0.0976)
OKLCHoklch(39.34% 0.098 267.7)
XYZxyz(6.6322, 5.9054, 19.1989)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F427A #7A672F
analogous
#2F677A #2F427A #412F7A
triadic
#2F427A #7A2F42 #427A2F
tetradic
#2F427A #7A2F67 #7A672F #2F7A41
square
#2F427A #7A2F67 #7A672F #2F7A41
split-complementary
#2F427A #7A412F #677A2F
monochromatic
#0D1222 #1E2A4E #2F427A #405AA6 #617AC2

Accessibility & contrast

On white

9.63
#2F427A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2F427A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F427A
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F427A#FFFFFF#000000##FFFFFF
##2F427A1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29487C
Deuteranopia (green-blind)
#1E4279
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f427a;
/* rgb */ color: rgb(47, 66, 122);
/* oklch */ color: oklch(39.3% 0.098 267.7);
Tailwind
colors: {
  custom: {
    50: '#6f76a1',
    500: '#2f427a',
    950: '#000000',
  },
}
SCSS
$custom: #2f427a;
$custom-light: #6f76a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f427a",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 122
  },
  "hsl": {
    "h": 224.8,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39337,
    "c": 0.09772,
    "h": 267.7
  },
  "luminance": 0.05906
}

Semantic roles & 50–950 ramp

primary
#2F427A
secondary
#A9955C
accent
#B454D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #2F427A

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

Preview Lab → · Contrast checker → · Palette generator →

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