#2D38AF#2D38AF

#2D38AF is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.186 H 271.3°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2D38AF
RGBrgb(45, 56, 175)
HSLhsl(235, 59%, 43%)
HSVhsv(235, 74%, 69%)
CMYKcmyk(74.3%, 68%, 0%, 31.4%)
CIE-LABlab(30.59, 37.02, -64.40)
CIE-LCHlch(30.59, 74.28, 299.89°)
OKLaboklab(41.68% 0.0041 -0.1863)
OKLCHoklch(41.68% 0.186 271.3)
XYZxyz(10.2316, 6.4803, 41.2607)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38AF #AFA42D
analogous
#2D79AF #2D38AF #632DAF
triadic
#2D38AF #AF2D38 #38AF2D
tetradic
#2D38AF #AF2D79 #AFA42D #2DAF63
square
#2D38AF #AF2D79 #AFA42D #2DAF63
split-complementary
#2D38AF #AF632D #79AF2D
monochromatic
#14194E #20287E #2D38AF #4954D0 #7A82DD

Accessibility & contrast

On white

9.15
#2D38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2D38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38AF
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38AF#FFFFFF#000000##FFFFFF
##2D38AF1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d38af;
/* rgb */ color: rgb(45, 56, 175);
/* oklch */ color: oklch(41.7% 0.186 271.3);
Tailwind
colors: {
  custom: {
    50: '#7a6fc8',
    500: '#2d38af',
    950: '#000000',
  },
}
SCSS
$custom: #2d38af;
$custom-light: #7a6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38af",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 234.923,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41675,
    "c": 0.18631,
    "h": 271.3
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#2D38AF
secondary
#C5BE73
accent
#D546E2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2D38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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