#2F457E#2F457E

#2F457E is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.3% C 0.100 H 266.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2F457E
RGBrgb(47, 69, 126)
HSLhsl(223, 46%, 34%)
HSVhsv(223, 63%, 49%)
CMYKcmyk(62.7%, 45.2%, 0%, 50.6%)
CIE-LABlab(30.32, 10.58, -34.94)
CIE-LCHlch(30.32, 36.51, 286.85°)
OKLaboklab(40.3% -0.0067 -0.0996)
OKLCHoklch(40.3% 0.1 266.2)
XYZxyz(7.0650, 6.3663, 20.5911)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F457E #7E682F
analogous
#2F6D7E #2F457E #412F7E
triadic
#2F457E #7E2F45 #457E2F
tetradic
#2F457E #7E2F6D #7E682F #2F7E41
square
#2F457E #7E2F6D #7E682F #2F7E41
split-complementary
#2F457E #7E412F #6D7E2F
monochromatic
#0E1425 #1E2D51 #2F457E #405DAB #637EC5

Accessibility & contrast

On white

9.24
#2F457E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F457E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F457E
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F457E#FFFFFF#000000##FFFFFF
##2F457E1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#20447D
Tritanopia (blue-blind)
#00525B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f457e;
/* rgb */ color: rgb(47, 69, 126);
/* oklch */ color: oklch(40.3% 0.100 266.2);
Tailwind
colors: {
  custom: {
    50: '#6f78a4',
    500: '#2f457e',
    950: '#000000',
  },
}
SCSS
$custom: #2f457e;
$custom-light: #6f78a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f457e",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 126
  },
  "hsl": {
    "h": 223.291,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40297,
    "c": 0.09979,
    "h": 266.2
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#2F457E
secondary
#AC965D
accent
#B152D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2F457E

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

Preview Lab → · Contrast checker → · Palette generator →

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