#3038B2#3038B2

#3038B2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.189 H 272.1°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#3038B2
RGBrgb(48, 56, 178)
HSLhsl(236, 58%, 44%)
HSVhsv(236, 73%, 70%)
CMYKcmyk(73%, 68.5%, 0%, 30.2%)
CIE-LABlab(31.04, 38.40, -65.44)
CIE-LCHlch(31.04, 75.87, 300.40°)
OKLaboklab(42.13% 0.007 -0.1892)
OKLCHoklch(42.13% 0.189 272.1)
XYZxyz(10.6663, 6.6700, 42.8362)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038B2 #B2AA30
analogous
#3079B2 #3038B2 #6930B2
triadic
#3038B2 #B23038 #38B230
tetradic
#3038B2 #B23079 #B2AA30 #30B269
square
#3038B2 #B23079 #B2AA30 #30B269
split-complementary
#3038B2 #B26930 #79B230
monochromatic
#161A52 #232982 #3038B2 #5057D0 #8085DD

Accessibility & contrast

On white

9.00
#3038B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3038B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3038B2#FFFFFF#000000##FFFFFF
##3038B21.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0043B0
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3038b2;
/* rgb */ color: rgb(48, 56, 178);
/* oklch */ color: oklch(42.1% 0.189 272.1);
Tailwind
colors: {
  custom: {
    50: '#7c6fca',
    500: '#3038b2',
    950: '#000000',
  },
}
SCSS
$custom: #3038b2;
$custom-light: #7c6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#3038b2",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 236.308,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42132,
    "c": 0.18938,
    "h": 272.1
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#3038B2
secondary
#C6C178
accent
#D747E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3038B2

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

Preview Lab → · Contrast checker → · Palette generator →

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