#3038B6#3038B6

#3038B6 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.194 H 271.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#3038B6
RGBrgb(48, 56, 182)
HSLhsl(236, 58%, 45%)
HSVhsv(236, 74%, 71%)
CMYKcmyk(73.6%, 69.2%, 0%, 28.6%)
CIE-LABlab(31.42, 39.79, -67.19)
CIE-LCHlch(31.42, 78.09, 300.64°)
OKLaboklab(42.52% 0.0066 -0.1944)
OKLCHoklch(42.52% 0.194 271.9)
XYZxyz(11.0737, 6.8330, 44.9822)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038B6 #B6AE30
analogous
#307BB6 #3038B6 #6B30B6
triadic
#3038B6 #B63038 #38B630
tetradic
#3038B6 #B6307B #B6AE30 #30B66B
square
#3038B6 #B6307B #B6AE30 #30B66B
split-complementary
#3038B6 #B66B30 #7BB630
monochromatic
#161A55 #232986 #3038B6 #5259D1 #8288DE

Accessibility & contrast

On white

8.87
#3038B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3038B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3038B6
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3038B6#FFFFFF#000000##FFFFFF
##3038B61.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0044B4
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3038b6;
/* rgb */ color: rgb(48, 56, 182);
/* oklch */ color: oklch(42.5% 0.194 271.9);
Tailwind
colors: {
  custom: {
    50: '#7d6fcd',
    500: '#3038b6',
    950: '#000000',
  },
}
SCSS
$custom: #3038b6;
$custom-light: #7d6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3038b6",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 236.418,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42522,
    "c": 0.19447,
    "h": 271.9
  },
  "luminance": 0.06834
}

Semantic roles & 50–950 ramp

primary
#3038B6
secondary
#C7C37B
accent
#D846E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3038B6

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

Preview Lab → · Contrast checker → · Palette generator →

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