#2F457F#2F457F

#2F457F is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.4% C 0.101 H 266.3°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#2F457F
RGBrgb(47, 69, 127)
HSLhsl(224, 46%, 34%)
HSVhsv(224, 63%, 50%)
CMYKcmyk(63%, 45.7%, 0%, 50.2%)
CIE-LABlab(30.38, 10.95, -35.46)
CIE-LCHlch(30.38, 37.11, 287.16°)
OKLaboklab(40.37% -0.0065 -0.1011)
OKLCHoklch(40.37% 0.101 266.3)
XYZxyz(7.1299, 6.3923, 20.9327)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F457F #7F692F
analogous
#2F6D7F #2F457F #412F7F
triadic
#2F457F #7F2F45 #457F2F
tetradic
#2F457F #7F2F6D #7F692F #2F7F41
square
#2F457F #7F2F6D #7F692F #2F7F41
split-complementary
#2F457F #7F412F #6D7F2F
monochromatic
#0E1426 #1E2D52 #2F457F #405DAC #637EC5

Accessibility & contrast

On white

9.22
#2F457F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F457F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F457F
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F457F#FFFFFF#000000##FFFFFF
##2F457F1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B81
Deuteranopia (green-blind)
#1E447E
Tritanopia (blue-blind)
#00525B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f457f;
/* rgb */ color: rgb(47, 69, 127);
/* oklch */ color: oklch(40.4% 0.101 266.3);
Tailwind
colors: {
  custom: {
    50: '#6f78a4',
    500: '#2f457f',
    950: '#000000',
  },
}
SCSS
$custom: #2f457f;
$custom-light: #6f78a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f457f",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 127
  },
  "hsl": {
    "h": 223.5,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40366,
    "c": 0.10132,
    "h": 266.3
  },
  "luminance": 0.06393
}

Semantic roles & 50–950 ramp

primary
#2F457F
secondary
#AC975E
accent
#B152D6
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F457F

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

Preview Lab → · Contrast checker → · Palette generator →

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