#2D38B7#2D38B7

#2D38B7 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.197 H 270.9°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#2D38B7
RGBrgb(45, 56, 183)
HSLhsl(235, 61%, 45%)
HSVhsv(235, 75%, 72%)
CMYKcmyk(75.4%, 69.4%, 0%, 28.2%)
CIE-LABlab(31.36, 39.84, -67.90)
CIE-LCHlch(31.36, 78.72, 300.40°)
OKLaboklab(42.46% 0.0032 -0.1965)
OKLCHoklch(42.46% 0.197 270.9)
XYZxyz(11.0407, 6.8040, 45.5220)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38B7 #B7AC2D
analogous
#2D7DB7 #2D38B7 #672DB7
triadic
#2D38B7 #B72D38 #38B72D
tetradic
#2D38B7 #B72D7D #B7AC2D #2DB767
square
#2D38B7 #B72D7D #B7AC2D #2DB767
split-complementary
#2D38B7 #B7672D #7DB72D
monochromatic
#151A55 #212986 #2D38B7 #4E58D3 #7F87DF

Accessibility & contrast

On white

8.89
#2D38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2D38B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38B7
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38B7#FFFFFF#000000##FFFFFF
##2D38B71.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0043B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d38b7;
/* rgb */ color: rgb(45, 56, 183);
/* oklch */ color: oklch(42.5% 0.197 270.9);
Tailwind
colors: {
  custom: {
    50: '#7c6fce',
    500: '#2d38b7',
    950: '#000000',
  },
}
SCSS
$custom: #2d38b7;
$custom-light: #7c6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38b7",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 235.217,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42459,
    "c": 0.19653,
    "h": 270.9
  },
  "luminance": 0.06805
}

Semantic roles & 50–950 ramp

primary
#2D38B7
secondary
#C8C278
accent
#D744E4
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2D38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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