#2D2F8E#2D2F8E

#2D2F8E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.153 H 275.0°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2D2F8E
RGBrgb(45, 47, 142)
HSLhsl(239, 52%, 37%)
HSVhsv(239, 68%, 56%)
CMYKcmyk(68.3%, 66.9%, 0%, 44.3%)
CIE-LABlab(25.39, 30.97, -52.87)
CIE-LCHlch(25.39, 61.27, 300.36°)
OKLaboklab(36.96% 0.0134 -0.1526)
OKLCHoklch(36.96% 0.153 275)
XYZxyz(6.9796, 4.5433, 26.0951)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F8E #8E8C2D
analogous
#2D608E #2D2F8E #5C2D8E
triadic
#2D2F8E #8E2D2F #2F8E2D
tetradic
#2D2F8E #8E2D60 #8E8C2D #2D8E5C
square
#2D2F8E #8E2D60 #8E8C2D #2D8E5C
split-complementary
#2D2F8E #8E5C2D #608E2D
monochromatic
#101031 #1E2060 #2D2F8E #3C3EBC #6769CF

Accessibility & contrast

On white

11.00
#2D2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F8E
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F8E#FFFFFF#000000##FFFFFF
##2D2F8E1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2f8e;
/* rgb */ color: rgb(45, 47, 142);
/* oklch */ color: oklch(37.0% 0.153 275.0);
Tailwind
colors: {
  custom: {
    50: '#7368b0',
    500: '#2d2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f8e;
$custom-light: #7368b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f8e",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 238.763,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36956,
    "c": 0.15315,
    "h": 275
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#2D2F8E
secondary
#B5B461
accent
#D84CDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2D2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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