#3038AB#3038AB

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

Color values

HEX#3038AB
RGBrgb(48, 56, 171)
HSLhsl(236, 56%, 43%)
HSVhsv(236, 72%, 67%)
CMYKcmyk(71.9%, 67.3%, 0%, 32.9%)
CIE-LABlab(30.39, 35.94, -62.33)
CIE-LCHlch(30.39, 71.95, 299.97°)
OKLaboklab(41.46% 0.0077 -0.1802)
OKLCHoklch(41.46% 0.18 272.5)
XYZxyz(9.9813, 6.3960, 39.2287)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038AB #ABA330
analogous
#3075AB #3038AB #6630AB
triadic
#3038AB #AB3038 #38AB30
tetradic
#3038AB #AB3075 #ABA330 #30AB66
square
#3038AB #AB3075 #ABA330 #30AB66
split-complementary
#3038AB #AB6630 #75AB30
monochromatic
#15194B #23287B #3038AB #4C54CD #7B82DA

Accessibility & contrast

On white

9.21
#3038AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3038AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3038AB#FFFFFF#000000##FFFFFF
##3038AB1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3038ab;
/* rgb */ color: rgb(48, 56, 171);
/* oklch */ color: oklch(41.5% 0.180 272.5);
Tailwind
colors: {
  custom: {
    50: '#7a6fc5',
    500: '#3038ab',
    950: '#000000',
  },
}
SCSS
$custom: #3038ab;
$custom-light: #7a6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#3038ab",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 236.098,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41459,
    "c": 0.18033,
    "h": 272.5
  },
  "luminance": 0.06397
}

Semantic roles & 50–950 ramp

primary
#3038AB
secondary
#C3BD74
accent
#D648DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3038AB

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

Preview Lab → · Contrast checker → · Palette generator →

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