#2D4F8E#2D4F8E

#2D4F8E is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.6% C 0.111 H 261.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2D4F8E
RGBrgb(45, 79, 142)
HSLhsl(219, 52%, 37%)
HSVhsv(219, 68%, 56%)
CMYKcmyk(68.3%, 44.4%, 0%, 44.3%)
CIE-LABlab(34.19, 9.49, -38.62)
CIE-LCHlch(34.19, 39.77, 283.80°)
OKLaboklab(43.58% -0.0163 -0.1103)
OKLCHoklch(43.58% 0.111 261.6)
XYZxyz(8.7589, 8.1020, 26.6882)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F8E #8E6C2D
analogous
#2D808E #2D4F8E #3C2D8E
triadic
#2D4F8E #8E2D4F #4F8E2D
tetradic
#2D4F8E #8E2D80 #8E6C2D #2D8E3C
square
#2D4F8E #8E2D80 #8E6C2D #2D8E3C
split-complementary
#2D4F8E #8E3C2D #808E2D
monochromatic
#101B31 #1E3560 #2D4F8E #3C69BC #678BCF

Accessibility & contrast

On white

8.01
#2D4F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2D4F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F8E
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F8E#FFFFFF#000000##FFFFFF
##2D4F8E1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315590
Deuteranopia (green-blind)
#214C8D
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d4f8e;
/* rgb */ color: rgb(45, 79, 142);
/* oklch */ color: oklch(43.6% 0.111 261.6);
Tailwind
colors: {
  custom: {
    50: '#717faf',
    500: '#2d4f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f8e;
$custom-light: #717faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f8e",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 142
  },
  "hsl": {
    "h": 218.969,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.43575,
    "c": 0.11149,
    "h": 261.6
  },
  "luminance": 0.08103
}

Semantic roles & 50–950 ramp

primary
#2D4F8E
secondary
#B59861
accent
#A94CDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D4F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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