#3038B7#3038B7

#3038B7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.196 H 271.9°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#3038B7
RGBrgb(48, 56, 183)
HSLhsl(236, 58%, 45%)
HSVhsv(236, 74%, 72%)
CMYKcmyk(73.8%, 69.4%, 0%, 28.2%)
CIE-LABlab(31.52, 40.14, -67.63)
CIE-LCHlch(31.52, 78.64, 300.69°)
OKLaboklab(42.62% 0.0065 -0.1956)
OKLCHoklch(42.62% 0.196 271.9)
XYZxyz(11.1775, 6.8745, 45.5284)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038B7 #B7AF30
analogous
#307CB7 #3038B7 #6B30B7
triadic
#3038B7 #B73038 #38B730
tetradic
#3038B7 #B7307C #B7AF30 #30B76B
square
#3038B7 #B7307C #B7AF30 #30B76B
split-complementary
#3038B7 #B76B30 #7CB730
monochromatic
#171A56 #232987 #3038B7 #525AD2 #8388DE

Accessibility & contrast

On white

8.84
#3038B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3038B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3038B7#FFFFFF#000000##FFFFFF
##3038B71.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0044B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3038b7;
/* rgb */ color: rgb(48, 56, 183);
/* oklch */ color: oklch(42.6% 0.196 271.9);
Tailwind
colors: {
  custom: {
    50: '#7d6fce',
    500: '#3038b7',
    950: '#000000',
  },
}
SCSS
$custom: #3038b7;
$custom-light: #7d6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#3038b7",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 236.444,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42621,
    "c": 0.19575,
    "h": 271.9
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#3038B7
secondary
#C8C37B
accent
#D846E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3038B7

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

Preview Lab → · Contrast checker → · Palette generator →

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