#2D2F80#2D2F80

#2D2F80 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.134 H 276.2°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2D2F80
RGBrgb(45, 47, 128)
HSLhsl(239, 48%, 34%)
HSVhsv(239, 65%, 50%)
CMYKcmyk(64.8%, 63.3%, 0%, 49.8%)
CIE-LABlab(24.16, 25.92, -46.14)
CIE-LCHlch(24.16, 52.92, 299.33°)
OKLaboklab(35.67% 0.0144 -0.1328)
OKLCHoklch(35.67% 0.134 276.2)
XYZxyz(5.9937, 4.1489, 20.9029)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F80 #807E2D
analogous
#2D5980 #2D2F80 #552D80
triadic
#2D2F80 #802D2F #2F802D
tetradic
#2D2F80 #802D59 #807E2D #2D8055
square
#2D2F80 #802D59 #807E2D #2D8055
split-complementary
#2D2F80 #80552D #59802D
monochromatic
#0D0E25 #1D1E53 #2D2F80 #3D40AD #6063C7

Accessibility & contrast

On white

11.48
#2D2F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2D2F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F80
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F80#FFFFFF#000000##FFFFFF
##2D2F801.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D83
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d2f80;
/* rgb */ color: rgb(45, 47, 128);
/* oklch */ color: oklch(35.7% 0.134 276.2);
Tailwind
colors: {
  custom: {
    50: '#7067a6',
    500: '#2d2f80',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f80;
$custom-light: #7067a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f80",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 238.554,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35669,
    "c": 0.1336,
    "h": 276.2
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#2D2F80
secondary
#AEAC5B
accent
#D450D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2F80

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

Preview Lab → · Contrast checker → · Palette generator →

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