#3038BB#3038BB

#3038BB is a dark, highly saturated blue. Relative luminance 0.070; OKLCH L 43.0% C 0.201 H 271.7°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#3038BB
RGBrgb(48, 56, 187)
HSLhsl(237, 59%, 46%)
HSVhsv(237, 74%, 73%)
CMYKcmyk(74.3%, 70.1%, 0%, 26.7%)
CIE-LABlab(31.91, 41.52, -69.36)
CIE-LCHlch(31.91, 80.84, 300.91°)
OKLaboklab(43.02% 0.006 -0.2007)
OKLCHoklch(43.02% 0.201 271.7)
XYZxyz(11.5997, 7.0434, 47.7523)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038BB #BBB330
analogous
#307DBB #3038BB #6D30BB
triadic
#3038BB #BB3038 #38BB30
tetradic
#3038BB #BB307D #BBB330 #30BB6D
square
#3038BB #BB307D #BBB330 #30BB6D
split-complementary
#3038BB #BB6D30 #7DBB30
monochromatic
#171B5A #23298A #3038BB #555CD3 #868BE0

Accessibility & contrast

On white

8.72
#3038BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3038BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3038BB#FFFFFF#000000##FFFFFF
##3038BB1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0044B9
Tritanopia (blue-blind)
#005C75
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3038bb;
/* rgb */ color: rgb(48, 56, 187);
/* oklch */ color: oklch(43.0% 0.201 271.7);
Tailwind
colors: {
  custom: {
    50: '#7e6fd1',
    500: '#3038bb',
    950: '#000000',
  },
}
SCSS
$custom: #3038bb;
$custom-light: #7e6fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#3038bb",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 236.547,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43016,
    "c": 0.20078,
    "h": 271.7
  },
  "luminance": 0.07045
}

Semantic roles & 50–950 ramp

primary
#3038BB
secondary
#C9C57D
accent
#D945E2
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3038BB

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

Preview Lab → · Contrast checker → · Palette generator →

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