#2F427B#2F427B

#2F427B is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.4% C 0.099 H 267.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2F427B
RGBrgb(47, 66, 123)
HSLhsl(225, 45%, 33%)
HSVhsv(225, 62%, 48%)
CMYKcmyk(61.8%, 46.3%, 0%, 51.8%)
CIE-LABlab(29.24, 11.51, -34.79)
CIE-LCHlch(29.24, 36.65, 288.30°)
OKLaboklab(39.41% -0.0038 -0.0992)
OKLCHoklch(39.41% 0.099 267.8)
XYZxyz(6.6944, 5.9303, 19.5269)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F427B #7B682F
analogous
#2F687B #2F427B #422F7B
triadic
#2F427B #7B2F42 #427B2F
tetradic
#2F427B #7B2F68 #7B682F #2F7B42
square
#2F427B #7B2F68 #7B682F #2F7B42
split-complementary
#2F427B #7B422F #687B2F
monochromatic
#0D1222 #1E2A4F #2F427B #405AA7 #627AC3

Accessibility & contrast

On white

9.61
#2F427B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2F427B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F427B
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F427B#FFFFFF#000000##FFFFFF
##2F427B1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497D
Deuteranopia (green-blind)
#1D427A
Tritanopia (blue-blind)
#004F58
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f427b;
/* rgb */ color: rgb(47, 66, 123);
/* oklch */ color: oklch(39.4% 0.099 267.8);
Tailwind
colors: {
  custom: {
    50: '#6f76a1',
    500: '#2f427b',
    950: '#000000',
  },
}
SCSS
$custom: #2f427b;
$custom-light: #6f76a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f427b",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 123
  },
  "hsl": {
    "h": 225,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39406,
    "c": 0.09925,
    "h": 267.8
  },
  "luminance": 0.05931
}

Semantic roles & 50–950 ramp

primary
#2F427B
secondary
#AA965C
accent
#B453D4
background
#F6F7FA
surface
#ECEDF3
border
#C7C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F427B

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

Preview Lab → · Contrast checker → · Palette generator →

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