#3038B8#3038B8

#3038B8 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.7% C 0.197 H 271.8°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#3038B8
RGBrgb(48, 56, 184)
HSLhsl(236, 59%, 45%)
HSVhsv(236, 74%, 72%)
CMYKcmyk(73.9%, 69.6%, 0%, 27.8%)
CIE-LABlab(31.62, 40.49, -68.06)
CIE-LCHlch(31.62, 79.19, 300.75°)
OKLaboklab(42.72% 0.0063 -0.1969)
OKLCHoklch(42.72% 0.197 271.8)
XYZxyz(11.2819, 6.9162, 46.0785)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038B8 #B8B030
analogous
#307CB8 #3038B8 #6C30B8
triadic
#3038B8 #B83038 #38B830
tetradic
#3038B8 #B8307C #B8B030 #30B86C
square
#3038B8 #B8307C #B8B030 #30B86C
split-complementary
#3038B8 #B86C30 #7CB830
monochromatic
#171A57 #232987 #3038B8 #535BD2 #8489DF

Accessibility & contrast

On white

8.81
#3038B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3038B8
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3038B8#FFFFFF#000000##FFFFFF
##3038B81.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3038b8;
/* rgb */ color: rgb(48, 56, 184);
/* oklch */ color: oklch(42.7% 0.197 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d6fce',
    500: '#3038b8',
    950: '#000000',
  },
}
SCSS
$custom: #3038b8;
$custom-light: #7d6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#3038b8",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 236.471,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42719,
    "c": 0.197,
    "h": 271.8
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#3038B8
secondary
#C8C47C
accent
#D946E2
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3038B8

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

Preview Lab → · Contrast checker → · Palette generator →

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