#3038B1#3038B1

#3038B1 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.0% C 0.188 H 272.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#3038B1
RGBrgb(48, 56, 177)
HSLhsl(236, 57%, 44%)
HSVhsv(236, 73%, 69%)
CMYKcmyk(72.9%, 68.4%, 0%, 30.6%)
CIE-LABlab(30.95, 38.05, -65.00)
CIE-LCHlch(30.95, 75.32, 300.34°)
OKLaboklab(42.04% 0.0071 -0.188)
OKLCHoklch(42.04% 0.188 272.2)
XYZxyz(10.5662, 6.6300, 42.3093)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038B1 #B1A930
analogous
#3079B1 #3038B1 #6930B1
triadic
#3038B1 #B13038 #38B130
tetradic
#3038B1 #B13079 #B1A930 #30B169
square
#3038B1 #B13079 #B1A930 #30B169
split-complementary
#3038B1 #B16930 #79B130
monochromatic
#161A51 #232981 #3038B1 #4F57CF #7F85DC

Accessibility & contrast

On white

9.03
#3038B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3038B1
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3038B1#FFFFFF#000000##FFFFFF
##3038B11.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3038b1;
/* rgb */ color: rgb(48, 56, 177);
/* oklch */ color: oklch(42.0% 0.188 272.2);
Tailwind
colors: {
  custom: {
    50: '#7c6fc9',
    500: '#3038b1',
    950: '#000000',
  },
}
SCSS
$custom: #3038b1;
$custom-light: #7c6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#3038b1",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 236.279,
    "s": 57.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42035,
    "c": 0.18809,
    "h": 272.2
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#3038B1
secondary
#C5C078
accent
#D747E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3038B1

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

Preview Lab → · Contrast checker → · Palette generator →

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