#2D2F9F#2D2F9F

#2D2F9F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.176 H 273.7°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#2D2F9F
RGBrgb(45, 47, 159)
HSLhsl(239, 56%, 40%)
HSVhsv(239, 72%, 62%)
CMYKcmyk(71.7%, 70.4%, 0%, 37.6%)
CIE-LABlab(27.00, 36.97, -60.66)
CIE-LCHlch(27.00, 71.04, 301.36°)
OKLaboklab(38.61% 0.0114 -0.1754)
OKLCHoklch(38.61% 0.176 273.7)
XYZxyz(8.3546, 5.0933, 33.3370)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F9F #9F9D2D
analogous
#2D689F #2D2F9F #642D9F
triadic
#2D2F9F #9F2D2F #2F9F2D
tetradic
#2D2F9F #9F2D68 #9F9D2D #2D9F64
square
#2D2F9F #9F2D68 #9F9D2D #2D9F64
split-complementary
#2D2F9F #9F642D #689F2D
monochromatic
#121340 #20216F #2D2F9F #4043C9 #7072D6

Accessibility & contrast

On white

10.40
#2D2F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2D2F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F9F
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F9F#FFFFFF#000000##FFFFFF
##2D2F9F1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d2f9f;
/* rgb */ color: rgb(45, 47, 159);
/* oklch */ color: oklch(38.6% 0.176 273.7);
Tailwind
colors: {
  custom: {
    50: '#7768bc',
    500: '#2d2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f9f;
$custom-light: #7768bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f9f",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 238.947,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.3861,
    "c": 0.17574,
    "h": 273.7
  },
  "luminance": 0.05094
}

Semantic roles & 50–950 ramp

primary
#2D2F9F
secondary
#BEBC6A
accent
#DD49DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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