#2D3794#2D3794

#2D3794 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.0% C 0.151 H 272.5°. Best body text is #FFFFFF at 10.07:1 contrast (WCAG AA passes).

Color values

HEX#2D3794
RGBrgb(45, 55, 148)
HSLhsl(234, 53%, 38%)
HSVhsv(234, 70%, 58%)
CMYKcmyk(69.6%, 62.8%, 0%, 42%)
CIE-LABlab(27.92, 27.90, -52.43)
CIE-LCHlch(27.92, 59.39, 298.01°)
OKLaboklab(38.97% 0.0066 -0.1512)
OKLCHoklch(38.97% 0.151 272.5)
XYZxyz(7.7919, 5.4277, 28.6482)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3794 #948A2D
analogous
#2D6A94 #2D3794 #572D94
triadic
#2D3794 #942D37 #37942D
tetradic
#2D3794 #942D6A #948A2D #2D9457
square
#2D3794 #942D6A #948A2D #2D9457
split-complementary
#2D3794 #94572D #6A942D
monochromatic
#101436 #1F2665 #2D3794 #3B48C3 #6A74D2

Accessibility & contrast

On white

10.07
#2D3794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2D3794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3794
10.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3794#FFFFFF#000000##FFFFFF
##2D37941.0010.072.0910.07
#FFFFFF10.071.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#003D92
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2d3794;
/* rgb */ color: rgb(45, 55, 148);
/* oklch */ color: oklch(39.0% 0.151 272.5);
Tailwind
colors: {
  custom: {
    50: '#746db4',
    500: '#2d3794',
    950: '#000000',
  },
}
SCSS
$custom: #2d3794;
$custom-light: #746db4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3794",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 234.175,
    "s": 53.368,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38973,
    "c": 0.15138,
    "h": 272.5
  },
  "luminance": 0.05428
}

Semantic roles & 50–950 ramp

primary
#2D3794
secondary
#B8B064
accent
#CF4BDD
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2D3794

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

Preview Lab → · Contrast checker → · Palette generator →

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