#3040AF#3040AF

#3040AF is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.176 H 270.7°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#3040AF
RGBrgb(48, 64, 175)
HSLhsl(232, 57%, 44%)
HSVhsv(232, 73%, 69%)
CMYKcmyk(72.6%, 63.4%, 0%, 31.4%)
CIE-LABlab(32.68, 32.27, -60.97)
CIE-LCHlch(32.68, 68.99, 297.89°)
OKLaboklab(43.24% 0.0021 -0.1761)
OKLCHoklch(43.24% 0.176 270.7)
XYZxyz(10.7875, 7.3892, 41.4069)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040AF #AF9F30
analogous
#307FAF #3040AF #5F30AF
triadic
#3040AF #AF3040 #40AF30
tetradic
#3040AF #AF307F #AF9F30 #30AF5F
square
#3040AF #AF307F #AF9F30 #30AF5F
split-complementary
#3040AF #AF5F30 #7FAF30
monochromatic
#161D4F #232E7F #3040AF #4E5ECE #7E8ADC

Accessibility & contrast

On white

8.47
#3040AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#3040AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040AF
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040AF#FFFFFF#000000##FFFFFF
##3040AF1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3040af;
/* rgb */ color: rgb(48, 64, 175);
/* oklch */ color: oklch(43.2% 0.176 270.7);
Tailwind
colors: {
  custom: {
    50: '#7a74c8',
    500: '#3040af',
    950: '#000000',
  },
}
SCSS
$custom: #3040af;
$custom-light: #7a74c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3040af",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 232.441,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43242,
    "c": 0.17615,
    "h": 270.7
  },
  "luminance": 0.0739
}

Semantic roles & 50–950 ramp

primary
#3040AF
secondary
#C4BB76
accent
#CD48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3040AF

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

Preview Lab → · Contrast checker → · Palette generator →

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