#2D2F98#2D2F98

#2D2F98 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.9% C 0.167 H 274.2°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#2D2F98
RGBrgb(45, 47, 152)
HSLhsl(239, 54%, 39%)
HSVhsv(239, 70%, 60%)
CMYKcmyk(70.4%, 69.1%, 0%, 40.4%)
CIE-LABlab(26.32, 34.52, -57.50)
CIE-LCHlch(26.32, 67.06, 300.98°)
OKLaboklab(37.92% 0.0123 -0.1661)
OKLCHoklch(37.92% 0.167 274.2)
XYZxyz(7.7643, 4.8572, 30.2280)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F98 #98962D
analogous
#2D6498 #2D2F98 #602D98
triadic
#2D2F98 #982D2F #2F982D
tetradic
#2D2F98 #982D64 #98962D #2D9860
square
#2D2F98 #982D64 #98962D #2D9860
split-complementary
#2D2F98 #98602D #64982D
monochromatic
#11123A #1F2069 #2D2F98 #3D3FC5 #6C6ED3

Accessibility & contrast

On white

10.65
#2D2F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D2F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F98
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F98#FFFFFF#000000##FFFFFF
##2D2F981.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d2f98;
/* rgb */ color: rgb(45, 47, 152);
/* oklch */ color: oklch(37.9% 0.167 274.2);
Tailwind
colors: {
  custom: {
    50: '#7568b7',
    500: '#2d2f98',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f98;
$custom-light: #7568b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f98",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 238.879,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37918,
    "c": 0.16657,
    "h": 274.2
  },
  "luminance": 0.04858
}

Semantic roles & 50–950 ramp

primary
#2D2F98
secondary
#BAB966
accent
#DB4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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