#2D2F8D#2D2F8D

#2D2F8D is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.152 H 275.1°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2D2F8D
RGBrgb(45, 47, 141)
HSLhsl(239, 52%, 36%)
HSVhsv(239, 68%, 55%)
CMYKcmyk(68.1%, 66.7%, 0%, 44.7%)
CIE-LABlab(25.30, 30.61, -52.39)
CIE-LCHlch(25.30, 60.68, 300.29°)
OKLaboklab(36.86% 0.0135 -0.1512)
OKLCHoklch(36.86% 0.152 275.1)
XYZxyz(6.9048, 4.5134, 25.7014)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F8D #8D8B2D
analogous
#2D5F8D #2D2F8D #5B2D8D
triadic
#2D2F8D #8D2D2F #2F8D2D
tetradic
#2D2F8D #8D2D5F #8D8B2D #2D8D5B
square
#2D2F8D #8D2D5F #8D8B2D #2D8D5B
split-complementary
#2D2F8D #8D5B2D #5F8D2D
monochromatic
#0F1030 #1E205F #2D2F8D #3C3EBB #6668CE

Accessibility & contrast

On white

11.04
#2D2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F8D
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F8D#FFFFFF#000000##FFFFFF
##2D2F8D1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d2f8d;
/* rgb */ color: rgb(45, 47, 141);
/* oklch */ color: oklch(36.9% 0.152 275.1);
Tailwind
colors: {
  custom: {
    50: '#7368af',
    500: '#2d2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f8d;
$custom-light: #7368af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f8d",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 238.75,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36861,
    "c": 0.15178,
    "h": 275.1
  },
  "luminance": 0.04514
}

Semantic roles & 50–950 ramp

primary
#2D2F8D
secondary
#B5B361
accent
#D84DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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