#2D2FA0#2D2FA0

#2D2FA0 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.177 H 273.6°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#2D2FA0
RGBrgb(45, 47, 160)
HSLhsl(239, 56%, 40%)
HSVhsv(239, 72%, 63%)
CMYKcmyk(71.9%, 70.6%, 0%, 37.3%)
CIE-LABlab(27.10, 37.32, -61.11)
CIE-LCHlch(27.10, 71.60, 301.41°)
OKLaboklab(38.71% 0.0112 -0.1767)
OKLCHoklch(38.71% 0.177 273.6)
XYZxyz(8.4417, 5.1282, 33.7958)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2FA0 #A09E2D
analogous
#2D68A0 #2D2FA0 #652DA0
triadic
#2D2FA0 #A02D2F #2FA02D
tetradic
#2D2FA0 #A02D68 #A09E2D #2DA065
square
#2D2FA0 #A02D68 #A09E2D #2DA065
split-complementary
#2D2FA0 #A0652D #68A02D
monochromatic
#121340 #202170 #2D2FA0 #4143C9 #7072D7

Accessibility & contrast

On white

10.37
#2D2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2D2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2FA0
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2FA0#FFFFFF#000000##FFFFFF
##2D2FA01.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#003B9E
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d2fa0;
/* rgb */ color: rgb(45, 47, 160);
/* oklch */ color: oklch(38.7% 0.177 273.6);
Tailwind
colors: {
  custom: {
    50: '#7768bd',
    500: '#2d2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #2d2fa0;
$custom-light: #7768bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2fa0",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 238.957,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3871,
    "c": 0.17704,
    "h": 273.6
  },
  "luminance": 0.05129
}

Semantic roles & 50–950 ramp

primary
#2D2FA0
secondary
#BEBD6B
accent
#DD48DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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