#2F427E#2F427E

#2F427E is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.6% C 0.104 H 268.2°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#2F427E
RGBrgb(47, 66, 126)
HSLhsl(226, 46%, 34%)
HSVhsv(226, 63%, 49%)
CMYKcmyk(62.7%, 47.6%, 0%, 50.6%)
CIE-LABlab(29.43, 12.62, -36.36)
CIE-LCHlch(29.43, 38.49, 289.13°)
OKLaboklab(39.62% -0.0033 -0.1038)
OKLCHoklch(39.62% 0.104 268.2)
XYZxyz(6.8851, 6.0066, 20.5312)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F427E #7E6B2F
analogous
#2F6A7E #2F427E #442F7E
triadic
#2F427E #7E2F42 #427E2F
tetradic
#2F427E #7E2F6A #7E6B2F #2F7E44
square
#2F427E #7E2F6A #7E6B2F #2F7E44
split-complementary
#2F427E #7E442F #6A7E2F
monochromatic
#0E1325 #1E2B51 #2F427E #4059AB #637AC5

Accessibility & contrast

On white

9.54
#2F427E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F427E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F427E
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F427E#FFFFFF#000000##FFFFFF
##2F427E1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254980
Deuteranopia (green-blind)
#19427D
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f427e;
/* rgb */ color: rgb(47, 66, 126);
/* oklch */ color: oklch(39.6% 0.104 268.2);
Tailwind
colors: {
  custom: {
    50: '#6f76a4',
    500: '#2f427e',
    950: '#000000',
  },
}
SCSS
$custom: #2f427e;
$custom-light: #6f76a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f427e",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 126
  },
  "hsl": {
    "h": 225.57,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39616,
    "c": 0.10384,
    "h": 268.2
  },
  "luminance": 0.06007
}

Semantic roles & 50–950 ramp

primary
#2F427E
secondary
#AC995D
accent
#B652D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F427E

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

Preview Lab → · Contrast checker → · Palette generator →

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