#3038AA#3038AA

#3038AA is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.179 H 272.5°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#3038AA
RGBrgb(48, 56, 170)
HSLhsl(236, 56%, 43%)
HSVhsv(236, 72%, 67%)
CMYKcmyk(71.8%, 67.1%, 0%, 33.3%)
CIE-LABlab(30.30, 35.58, -61.88)
CIE-LCHlch(30.30, 71.38, 299.90°)
OKLaboklab(41.36% 0.0078 -0.1788)
OKLCHoklch(41.36% 0.179 272.5)
XYZxyz(9.8864, 6.3580, 38.7286)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038AA #AAA230
analogous
#3075AA #3038AA #6530AA
triadic
#3038AA #AA3038 #38AA30
tetradic
#3038AA #AA3075 #AAA230 #30AA65
square
#3038AA #AA3075 #AAA230 #30AA65
split-complementary
#3038AA #AA6530 #75AA30
monochromatic
#15194B #23287A #3038AA #4B53CC #7B81DA

Accessibility & contrast

On white

9.24
#3038AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#3038AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3038AA
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3038AA#FFFFFF#000000##FFFFFF
##3038AA1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0042A8
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3038aa;
/* rgb */ color: rgb(48, 56, 170);
/* oklch */ color: oklch(41.4% 0.179 272.5);
Tailwind
colors: {
  custom: {
    50: '#7a6fc4',
    500: '#3038aa',
    950: '#000000',
  },
}
SCSS
$custom: #3038aa;
$custom-light: #7a6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3038aa",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 236.066,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41364,
    "c": 0.17901,
    "h": 272.5
  },
  "luminance": 0.06359
}

Semantic roles & 50–950 ramp

primary
#3038AA
secondary
#C2BD74
accent
#D549DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3038AA

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

Preview Lab → · Contrast checker → · Palette generator →

#3038AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva