#2D2F9C#2D2F9C

#2D2F9C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.172 H 273.9°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2D2F9C
RGBrgb(45, 47, 156)
HSLhsl(239, 55%, 39%)
HSVhsv(239, 71%, 61%)
CMYKcmyk(71.2%, 69.9%, 0%, 38.8%)
CIE-LABlab(26.71, 35.93, -59.31)
CIE-LCHlch(26.71, 69.35, 301.20°)
OKLaboklab(38.31% 0.0118 -0.1714)
OKLCHoklch(38.31% 0.172 273.9)
XYZxyz(8.0975, 4.9904, 31.9826)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F9C #9C9A2D
analogous
#2D679C #2D2F9C #632D9C
triadic
#2D2F9C #9C2D2F #2F9C2D
tetradic
#2D2F9C #9C2D67 #9C9A2D #2D9C63
square
#2D2F9C #9C2D67 #9C9A2D #2D9C63
split-complementary
#2D2F9C #9C632D #679C2D
monochromatic
#12123D #1F216D #2D2F9C #3F41C8 #6E70D5

Accessibility & contrast

On white

10.51
#2D2F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2D2F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F9C
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F9C#FFFFFF#000000##FFFFFF
##2D2F9C1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d2f9c;
/* rgb */ color: rgb(45, 47, 156);
/* oklch */ color: oklch(38.3% 0.172 273.9);
Tailwind
colors: {
  custom: {
    50: '#7668ba',
    500: '#2d2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f9c;
$custom-light: #7668ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f9c",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 238.919,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38312,
    "c": 0.17183,
    "h": 273.9
  },
  "luminance": 0.04991
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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