#3038B4#3038B4

#3038B4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.3% C 0.192 H 272.0°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#3038B4
RGBrgb(48, 56, 180)
HSLhsl(236, 58%, 45%)
HSVhsv(236, 73%, 71%)
CMYKcmyk(73.3%, 68.9%, 0%, 29.4%)
CIE-LABlab(31.23, 39.10, -66.32)
CIE-LCHlch(31.23, 76.98, 300.52°)
OKLaboklab(42.33% 0.0068 -0.1918)
OKLCHoklch(42.33% 0.192 272)
XYZxyz(10.8685, 6.7509, 43.9014)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038B4 #B4AC30
analogous
#307AB4 #3038B4 #6A30B4
triadic
#3038B4 #B43038 #38B430
tetradic
#3038B4 #B4307A #B4AC30 #30B46A
square
#3038B4 #B4307A #B4AC30 #30B46A
split-complementary
#3038B4 #B46A30 #7AB430
monochromatic
#161A53 #232984 #3038B4 #5158D1 #8187DD

Accessibility & contrast

On white

8.93
#3038B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3038B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3038B4
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3038B4#FFFFFF#000000##FFFFFF
##3038B41.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0043B2
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3038b4;
/* rgb */ color: rgb(48, 56, 180);
/* oklch */ color: oklch(42.3% 0.192 272.0);
Tailwind
colors: {
  custom: {
    50: '#7c6fcc',
    500: '#3038b4',
    950: '#000000',
  },
}
SCSS
$custom: #3038b4;
$custom-light: #7c6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3038b4",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 236.364,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42327,
    "c": 0.19193,
    "h": 272
  },
  "luminance": 0.06752
}

Semantic roles & 50–950 ramp

primary
#3038B4
secondary
#C6C279
accent
#D847E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3038B4

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

Preview Lab → · Contrast checker → · Palette generator →

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