#2D4F9E#2D4F9E

#2D4F9E is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.7% C 0.135 H 264.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#2D4F9E
RGBrgb(45, 79, 158)
HSLhsl(222, 56%, 40%)
HSVhsv(222, 72%, 62%)
CMYKcmyk(71.5%, 50%, 0%, 38%)
CIE-LABlab(35.24, 15.57, -46.64)
CIE-LCHlch(35.24, 49.17, 288.46°)
OKLaboklab(44.71% -0.0137 -0.1339)
OKLCHoklch(44.71% 0.135 264.2)
XYZxyz(10.0475, 8.6174, 33.4749)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F9E #9E7C2D
analogous
#2D889E #2D4F9E #442D9E
triadic
#2D4F9E #9E2D4F #4F9E2D
tetradic
#2D4F9E #9E2D88 #9E7C2D #2D9E44
square
#2D4F9E #9E2D88 #9E7C2D #2D9E44
split-complementary
#2D4F9E #9E442D #889E2D
monochromatic
#121F3F #1F376E #2D4F9E #4069C9 #6F8ED6

Accessibility & contrast

On white

7.71
#2D4F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2D4F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F9E
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F9E#FFFFFF#000000##FFFFFF
##2D4F9E1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A1
Deuteranopia (green-blind)
#004E9C
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d4f9e;
/* rgb */ color: rgb(45, 79, 158);
/* oklch */ color: oklch(44.7% 0.135 264.2);
Tailwind
colors: {
  custom: {
    50: '#747fbb',
    500: '#2d4f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f9e;
$custom-light: #747fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f9e",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 158
  },
  "hsl": {
    "h": 221.947,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4471,
    "c": 0.13458,
    "h": 264.2
  },
  "luminance": 0.08618
}

Semantic roles & 50–950 ramp

primary
#2D4F9E
secondary
#BDA469
accent
#B249DF
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2D4F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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