#2D2F9D#2D2F9D

#2D2F9D is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.4% C 0.173 H 273.9°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#2D2F9D
RGBrgb(45, 47, 157)
HSLhsl(239, 55%, 40%)
HSVhsv(239, 71%, 62%)
CMYKcmyk(71.3%, 70.1%, 0%, 38.4%)
CIE-LABlab(26.80, 36.27, -59.76)
CIE-LCHlch(26.80, 69.91, 301.26°)
OKLaboklab(38.41% 0.0117 -0.1727)
OKLCHoklch(38.41% 0.173 273.9)
XYZxyz(8.1825, 5.0245, 32.4303)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F9D #9D9B2D
analogous
#2D679D #2D2F9D #632D9D
triadic
#2D2F9D #9D2D2F #2F9D2D
tetradic
#2D2F9D #9D2D67 #9D9B2D #2D9D63
square
#2D2F9D #9D2D67 #9D9B2D #2D9D63
split-complementary
#2D2F9D #9D632D #679D2D
monochromatic
#12133E #1F216D #2D2F9D #3F42C8 #6F71D6

Accessibility & contrast

On white

10.47
#2D2F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2D2F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F9D
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F9D#FFFFFF#000000##FFFFFF
##2D2F9D1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#003A9B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d2f9d;
/* rgb */ color: rgb(45, 47, 157);
/* oklch */ color: oklch(38.4% 0.173 273.9);
Tailwind
colors: {
  custom: {
    50: '#7768bb',
    500: '#2d2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f9d;
$custom-light: #7768bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f9d",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 238.929,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38411,
    "c": 0.17314,
    "h": 273.9
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#2D2F9D
secondary
#BDBB69
accent
#DC49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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