#3038AF#3038AF

#3038AF is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.186 H 272.3°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#3038AF
RGBrgb(48, 56, 175)
HSLhsl(236, 57%, 44%)
HSVhsv(236, 73%, 69%)
CMYKcmyk(72.6%, 68%, 0%, 31.4%)
CIE-LABlab(30.76, 37.35, -64.11)
CIE-LCHlch(30.76, 74.20, 300.22°)
OKLaboklab(41.84% 0.0073 -0.1854)
OKLCHoklch(41.84% 0.186 272.3)
XYZxyz(10.3684, 6.5508, 41.2671)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038AF #AFA730
analogous
#3077AF #3038AF #6730AF
triadic
#3038AF #AF3038 #38AF30
tetradic
#3038AF #AF3077 #AFA730 #30AF67
square
#3038AF #AF3077 #AFA730 #30AF67
split-complementary
#3038AF #AF6730 #77AF30
monochromatic
#16194F #23297F #3038AF #4E56CE #7E84DC

Accessibility & contrast

On white

9.09
#3038AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3038AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3038AF
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3038AF#FFFFFF#000000##FFFFFF
##3038AF1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3038af;
/* rgb */ color: rgb(48, 56, 175);
/* oklch */ color: oklch(41.8% 0.186 272.3);
Tailwind
colors: {
  custom: {
    50: '#7b6fc8',
    500: '#3038af',
    950: '#000000',
  },
}
SCSS
$custom: #3038af;
$custom-light: #7b6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#3038af",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 236.22,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41842,
    "c": 0.18551,
    "h": 272.3
  },
  "luminance": 0.06552
}

Semantic roles & 50–950 ramp

primary
#3038AF
secondary
#C4BF76
accent
#D748E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3038AF

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

Preview Lab → · Contrast checker → · Palette generator →

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