#2D2F8F#2D2F8F

#2D2F8F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.155 H 274.9°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#2D2F8F
RGBrgb(45, 47, 143)
HSLhsl(239, 52%, 37%)
HSVhsv(239, 69%, 56%)
CMYKcmyk(68.5%, 67.1%, 0%, 43.9%)
CIE-LABlab(25.48, 31.32, -53.33)
CIE-LCHlch(25.48, 61.85, 300.43°)
OKLaboklab(37.05% 0.0133 -0.1539)
OKLCHoklch(37.05% 0.155 274.9)
XYZxyz(7.0550, 4.5735, 26.4922)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F8F #8F8D2D
analogous
#2D608F #2D2F8F #5C2D8F
triadic
#2D2F8F #8F2D2F #2F8F2D
tetradic
#2D2F8F #8F2D60 #8F8D2D #2D8F5C
square
#2D2F8F #8F2D60 #8F8D2D #2D8F5C
split-complementary
#2D2F8F #8F5C2D #608F2D
monochromatic
#101032 #1E2060 #2D2F8F #3C3EBE #6769CF

Accessibility & contrast

On white

10.97
#2D2F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2D2F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F8F
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F8F#FFFFFF#000000##FFFFFF
##2D2F8F1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d2f8f;
/* rgb */ color: rgb(45, 47, 143);
/* oklch */ color: oklch(37.0% 0.155 274.9);
Tailwind
colors: {
  custom: {
    50: '#7368b1',
    500: '#2d2f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f8f;
$custom-light: #7368b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f8f",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 238.776,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3705,
    "c": 0.15451,
    "h": 274.9
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#2D2F8F
secondary
#B6B462
accent
#D94CDC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D2F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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