#2D2F7E#2D2F7E

#2D2F7E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.131 H 276.3°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2D2F7E
RGBrgb(45, 47, 126)
HSLhsl(239, 47%, 34%)
HSVhsv(239, 64%, 49%)
CMYKcmyk(64.3%, 62.7%, 0%, 50.6%)
CIE-LABlab(23.99, 25.20, -45.15)
CIE-LCHlch(23.99, 51.71, 299.16°)
OKLaboklab(35.49% 0.0145 -0.1299)
OKLCHoklch(35.49% 0.131 276.3)
XYZxyz(5.8634, 4.0968, 20.2164)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F7E #7E7C2D
analogous
#2D577E #2D2F7E #532D7E
triadic
#2D2F7E #7E2D2F #2F7E2D
tetradic
#2D2F7E #7E2D57 #7E7C2D #2D7E53
square
#2D2F7E #7E2D57 #7E7C2D #2D7E53
split-complementary
#2D2F7E #7E532D #577E2D
monochromatic
#0D0D24 #1D1E51 #2D2F7E #3D40AB #5F62C6

Accessibility & contrast

On white

11.54
#2D2F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2D2F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F7E
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F7E#FFFFFF#000000##FFFFFF
##2D2F7E1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2f7e;
/* rgb */ color: rgb(45, 47, 126);
/* oklch */ color: oklch(35.5% 0.131 276.3);
Tailwind
colors: {
  custom: {
    50: '#7067a4',
    500: '#2d2f7e',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f7e;
$custom-light: #7067a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f7e",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 238.519,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35492,
    "c": 0.13072,
    "h": 276.3
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#2D2F7E
secondary
#ACAA5A
accent
#D451D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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