#2D38B8#2D38B8

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

Color values

HEX#2D38B8
RGBrgb(45, 56, 184)
HSLhsl(235, 61%, 45%)
HSVhsv(235, 76%, 72%)
CMYKcmyk(75.5%, 69.6%, 0%, 27.8%)
CIE-LABlab(31.45, 40.19, -68.33)
CIE-LCHlch(31.45, 79.28, 300.46°)
OKLaboklab(42.56% 0.0031 -0.1978)
OKLCHoklch(42.56% 0.198 270.9)
XYZxyz(11.1451, 6.8457, 46.0721)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D38B8 #B8AD2D
analogous
#2D7DB8 #2D38B8 #682DB8
triadic
#2D38B8 #B82D38 #38B82D
tetradic
#2D38B8 #B82D7D #B8AD2D #2DB868
square
#2D38B8 #B82D7D #B8AD2D #2DB868
split-complementary
#2D38B8 #B8682D #7DB82D
monochromatic
#151A56 #212987 #2D38B8 #4E59D4 #8087E0

Accessibility & contrast

On white

8.86
#2D38B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2D38B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D38B8
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D38B8#FFFFFF#000000##FFFFFF
##2D38B81.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d38b8;
/* rgb */ color: rgb(45, 56, 184);
/* oklch */ color: oklch(42.6% 0.198 270.9);
Tailwind
colors: {
  custom: {
    50: '#7c6fce',
    500: '#2d38b8',
    950: '#000000',
  },
}
SCSS
$custom: #2d38b8;
$custom-light: #7c6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d38b8",
  "rgb": {
    "r": 45,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 235.252,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42558,
    "c": 0.19779,
    "h": 270.9
  },
  "luminance": 0.06847
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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