#3038AC#3038AC

#3038AC is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.6% C 0.182 H 272.4°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#3038AC
RGBrgb(48, 56, 172)
HSLhsl(236, 56%, 43%)
HSVhsv(236, 72%, 67%)
CMYKcmyk(72.1%, 67.4%, 0%, 32.5%)
CIE-LABlab(30.48, 36.29, -62.78)
CIE-LCHlch(30.48, 72.51, 300.03°)
OKLaboklab(41.56% 0.0076 -0.1815)
OKLCHoklch(41.56% 0.182 272.4)
XYZxyz(10.0770, 6.4343, 39.7326)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038AC #ACA430
analogous
#3076AC #3038AC #6630AC
triadic
#3038AC #AC3038 #38AC30
tetradic
#3038AC #AC3076 #ACA430 #30AC66
square
#3038AC #AC3076 #ACA430 #30AC66
split-complementary
#3038AC #AC6630 #76AC30
monochromatic
#15194C #23287C #3038AC #4C54CD #7C82DA

Accessibility & contrast

On white

9.18
#3038AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#3038AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3038AC#FFFFFF#000000##FFFFFF
##3038AC1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0042AA
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3038ac;
/* rgb */ color: rgb(48, 56, 172);
/* oklch */ color: oklch(41.6% 0.182 272.4);
Tailwind
colors: {
  custom: {
    50: '#7a6fc6',
    500: '#3038ac',
    950: '#000000',
  },
}
SCSS
$custom: #3038ac;
$custom-light: #7a6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3038ac",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 236.129,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41555,
    "c": 0.18163,
    "h": 272.4
  },
  "luminance": 0.06435
}

Semantic roles & 50–950 ramp

primary
#3038AC
secondary
#C3BE75
accent
#D648E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3038AC

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

Preview Lab → · Contrast checker → · Palette generator →

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