#2D2F9E#2D2F9E

#2D2F9E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.174 H 273.8°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2D2F9E
RGBrgb(45, 47, 158)
HSLhsl(239, 56%, 40%)
HSVhsv(239, 72%, 62%)
CMYKcmyk(71.5%, 70.3%, 0%, 38%)
CIE-LABlab(26.90, 36.62, -60.21)
CIE-LCHlch(26.90, 70.48, 301.31°)
OKLaboklab(38.51% 0.0115 -0.1741)
OKLCHoklch(38.51% 0.174 273.8)
XYZxyz(8.2682, 5.0587, 32.8818)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F9E #9E9C2D
analogous
#2D689E #2D2F9E #642D9E
triadic
#2D2F9E #9E2D2F #2F9E2D
tetradic
#2D2F9E #9E2D68 #9E9C2D #2D9E64
square
#2D2F9E #9E2D68 #9E9C2D #2D9E64
split-complementary
#2D2F9E #9E642D #689E2D
monochromatic
#12133F #1F216E #2D2F9E #4042C9 #6F71D6

Accessibility & contrast

On white

10.44
#2D2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F9E
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F9E#FFFFFF#000000##FFFFFF
##2D2F9E1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004D63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d2f9e;
/* rgb */ color: rgb(45, 47, 158);
/* oklch */ color: oklch(38.5% 0.174 273.8);
Tailwind
colors: {
  custom: {
    50: '#7768bc',
    500: '#2d2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f9e;
$custom-light: #7768bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f9e",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 238.938,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3851,
    "c": 0.17444,
    "h": 273.8
  },
  "luminance": 0.0506
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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