#2730AF#2730AF

#2730AF is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.197 H 270.6°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2730AF
RGBrgb(39, 48, 175)
HSLhsl(236, 64%, 42%)
HSVhsv(236, 78%, 69%)
CMYKcmyk(77.7%, 72.6%, 0%, 31.4%)
CIE-LABlab(28.48, 41.35, -67.88)
CIE-LCHlch(28.48, 79.48, 301.35°)
OKLaboklab(40.07% 0.0019 -0.1966)
OKLCHoklch(40.07% 0.197 270.6)
XYZxyz(9.6289, 5.6393, 41.1302)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2730AF #AFA627
analogous
#2774AF #2730AF #6227AF
triadic
#2730AF #AF2730 #30AF27
tetradic
#2730AF #AF2774 #AFA627 #27AF62
square
#2730AF #AF2774 #AFA627 #27AF62
split-complementary
#2730AF #AF6227 #74AF27
monochromatic
#11154B #1C227D #2730AF #3F49D4 #7178DF

Accessibility & contrast

On white

9.87
#2730AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2730AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2730AF
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2730AF#FFFFFF#000000##FFFFFF
##2730AF1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2730af;
/* rgb */ color: rgb(39, 48, 175);
/* oklch */ color: oklch(40.1% 0.197 270.6);
Tailwind
colors: {
  custom: {
    50: '#7969c8',
    500: '#2730af',
    950: '#000000',
  },
}
SCSS
$custom: #2730af;
$custom-light: #7969c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2730af",
  "rgb": {
    "r": 39,
    "g": 48,
    "b": 175
  },
  "hsl": {
    "h": 236.029,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40067,
    "c": 0.19657,
    "h": 270.6
  },
  "luminance": 0.0564
}

Semantic roles & 50–950 ramp

primary
#2730AF
secondary
#C6C06B
accent
#DC41E7
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2730AF

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

Preview Lab → · Contrast checker → · Palette generator →

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