#2D2F7F#2D2F7F

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

Color values

HEX#2D2F7F
RGBrgb(45, 47, 127)
HSLhsl(239, 48%, 34%)
HSVhsv(239, 65%, 50%)
CMYKcmyk(64.6%, 63%, 0%, 50.2%)
CIE-LABlab(24.07, 25.56, -45.65)
CIE-LCHlch(24.07, 52.31, 299.25°)
OKLaboklab(35.58% 0.0144 -0.1314)
OKLCHoklch(35.58% 0.132 276.3)
XYZxyz(5.9282, 4.1227, 20.5579)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F7F #7F7D2D
analogous
#2D587F #2D2F7F #542D7F
triadic
#2D2F7F #7F2D2F #2F7F2D
tetradic
#2D2F7F #7F2D58 #7F7D2D #2D7F54
square
#2D2F7F #7F2D58 #7F7D2D #2D7F54
split-complementary
#2D2F7F #7F542D #587F2D
monochromatic
#0D0E25 #1D1E52 #2D2F7F #3D40AC #6062C7

Accessibility & contrast

On white

11.51
#2D2F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F7F
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F7F#FFFFFF#000000##FFFFFF
##2D2F7F1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2f7f;
/* rgb */ color: rgb(45, 47, 127);
/* oklch */ color: oklch(35.6% 0.132 276.3);
Tailwind
colors: {
  custom: {
    50: '#7067a5',
    500: '#2d2f7f',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f7f;
$custom-light: #7067a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f7f",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 238.537,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35581,
    "c": 0.13216,
    "h": 276.3
  },
  "luminance": 0.04123
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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