#3038B9#3038B9

#3038B9 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.198 H 271.8°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#3038B9
RGBrgb(48, 56, 185)
HSLhsl(236, 59%, 46%)
HSVhsv(236, 74%, 73%)
CMYKcmyk(74.1%, 69.7%, 0%, 27.5%)
CIE-LABlab(31.71, 40.83, -68.49)
CIE-LCHlch(31.71, 79.74, 300.80°)
OKLaboklab(42.82% 0.0062 -0.1982)
OKLCHoklch(42.82% 0.198 271.8)
XYZxyz(11.3871, 6.9583, 46.6325)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038B9 #B9B130
analogous
#307DB9 #3038B9 #6C30B9
triadic
#3038B9 #B93038 #38B930
tetradic
#3038B9 #B9307D #B9B130 #30B96C
square
#3038B9 #B9307D #B9B130 #30B96C
split-complementary
#3038B9 #B96C30 #7DB930
monochromatic
#171B58 #232988 #3038B9 #545BD3 #848ADF

Accessibility & contrast

On white

8.78
#3038B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#3038B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3038B9
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3038B9#FFFFFF#000000##FFFFFF
##3038B91.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#0044B7
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3038b9;
/* rgb */ color: rgb(48, 56, 185);
/* oklch */ color: oklch(42.8% 0.198 271.8);
Tailwind
colors: {
  custom: {
    50: '#7d6fcf',
    500: '#3038b9',
    950: '#000000',
  },
}
SCSS
$custom: #3038b9;
$custom-light: #7d6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3038b9",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 236.496,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42818,
    "c": 0.19827,
    "h": 271.8
  },
  "luminance": 0.0696
}

Semantic roles & 50–950 ramp

primary
#3038B9
secondary
#C9C47C
accent
#D946E2
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3038B9

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

Preview Lab → · Contrast checker → · Palette generator →

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