#2D31AF#2D31AF

#2D31AF is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.194 H 272.3°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2D31AF
RGBrgb(45, 49, 175)
HSLhsl(238, 59%, 43%)
HSVhsv(238, 74%, 69%)
CMYKcmyk(74.3%, 72%, 0%, 31.4%)
CIE-LABlab(29.03, 41.30, -66.97)
CIE-LCHlch(29.03, 78.68, 301.66°)
OKLaboklab(40.55% 0.008 -0.1938)
OKLCHoklch(40.55% 0.194 272.3)
XYZxyz(9.9158, 5.8486, 41.1554)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D31AF #AFAB2D
analogous
#2D72AF #2D31AF #6A2DAF
triadic
#2D31AF #AF2D31 #31AF2D
tetradic
#2D31AF #AF2D72 #AFAB2D #2DAF6A
square
#2D31AF #AF2D72 #AFAB2D #2DAF6A
split-complementary
#2D31AF #AF6A2D #72AF2D
monochromatic
#14164E #20237E #2D31AF #494DD0 #7A7DDD

Accessibility & contrast

On white

9.68
#2D31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2D31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D31AF
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D31AF#FFFFFF#000000##FFFFFF
##2D31AF1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00556D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2d31af;
/* rgb */ color: rgb(45, 49, 175);
/* oklch */ color: oklch(40.5% 0.194 272.3);
Tailwind
colors: {
  custom: {
    50: '#7b6ac8',
    500: '#2d31af',
    950: '#000000',
  },
}
SCSS
$custom: #2d31af;
$custom-light: #7b6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d31af",
  "rgb": {
    "r": 45,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 238.154,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40546,
    "c": 0.19395,
    "h": 272.3
  },
  "luminance": 0.0585
}

Semantic roles & 50–950 ramp

primary
#2D31AF
secondary
#C5C273
accent
#DD46E2
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2D31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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