#2D2FAF#2D2FAF

#2D2FAF is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.196 H 272.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2D2FAF
RGBrgb(45, 47, 175)
HSLhsl(239, 59%, 43%)
HSVhsv(239, 74%, 69%)
CMYKcmyk(74.3%, 73.1%, 0%, 31.4%)
CIE-LABlab(28.60, 42.47, -67.67)
CIE-LCHlch(28.60, 79.90, 302.11°)
OKLaboklab(40.24% 0.009 -0.1958)
OKLCHoklch(40.24% 0.196 272.6)
XYZxyz(9.8340, 5.6850, 41.1282)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2FAF #AFAD2D
analogous
#2D70AF #2D2FAF #6C2DAF
triadic
#2D2FAF #AF2D2F #2FAF2D
tetradic
#2D2FAF #AF2D70 #AFAD2D #2DAF6C
square
#2D2FAF #AF2D70 #AFAD2D #2DAF6C
split-complementary
#2D2FAF #AF6C2D #70AF2D
monochromatic
#14154E #20227E #2D2FAF #494BD0 #7A7BDD

Accessibility & contrast

On white

9.83
#2D2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2D2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2FAF
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2FAF#FFFFFF#000000##FFFFFF
##2D2FAF1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d2faf;
/* rgb */ color: rgb(45, 47, 175);
/* oklch */ color: oklch(40.2% 0.196 272.6);
Tailwind
colors: {
  custom: {
    50: '#7b69c8',
    500: '#2d2faf',
    950: '#000000',
  },
}
SCSS
$custom: #2d2faf;
$custom-light: #7b69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2faf",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 239.077,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40243,
    "c": 0.19602,
    "h": 272.6
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#2D2FAF
secondary
#C5C473
accent
#E046E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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