#3038BA#3038BA

#3038BA is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.9% C 0.200 H 271.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#3038BA
RGBrgb(48, 56, 186)
HSLhsl(237, 59%, 46%)
HSVhsv(237, 74%, 73%)
CMYKcmyk(74.2%, 69.9%, 0%, 27.1%)
CIE-LABlab(31.81, 41.18, -68.93)
CIE-LCHlch(31.81, 80.29, 300.86°)
OKLaboklab(42.92% 0.0061 -0.1994)
OKLCHoklch(42.92% 0.2 271.7)
XYZxyz(11.4930, 7.0007, 47.1904)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3038BA #BAB230
analogous
#307DBA #3038BA #6D30BA
triadic
#3038BA #BA3038 #38BA30
tetradic
#3038BA #BA307D #BAB230 #30BA6D
square
#3038BA #BA307D #BAB230 #30BA6D
split-complementary
#3038BA #BA6D30 #7DBA30
monochromatic
#171B59 #232989 #3038BA #545CD3 #858ADF

Accessibility & contrast

On white

8.75
#3038BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#3038BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3038BA
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3038BA#FFFFFF#000000##FFFFFF
##3038BA1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BE
Deuteranopia (green-blind)
#0044B8
Tritanopia (blue-blind)
#005C75
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3038ba;
/* rgb */ color: rgb(48, 56, 186);
/* oklch */ color: oklch(42.9% 0.200 271.7);
Tailwind
colors: {
  custom: {
    50: '#7e6fd0',
    500: '#3038ba',
    950: '#000000',
  },
}
SCSS
$custom: #3038ba;
$custom-light: #7e6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#3038ba",
  "rgb": {
    "r": 48,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 236.522,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42917,
    "c": 0.19952,
    "h": 271.7
  },
  "luminance": 0.07002
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3038BA

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

Preview Lab → · Contrast checker → · Palette generator →

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