#274879#274879

#274879 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.2% C 0.092 H 258.2°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#274879
RGBrgb(39, 72, 121)
HSLhsl(216, 51%, 31%)
HSVhsv(216, 68%, 47%)
CMYKcmyk(67.8%, 40.5%, 0%, 52.5%)
CIE-LABlab(30.51, 5.08, -31.54)
CIE-LCHlch(30.51, 31.94, 279.15°)
OKLaboklab(40.23% -0.0188 -0.0897)
OKLCHoklch(40.23% 0.092 258.2)
XYZxyz(6.6040, 6.4459, 18.9816)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#274879 #795827
analogous
#277179 #274879 #2F2779
triadic
#274879 #792748 #487927
tetradic
#274879 #792771 #795827 #27792F
square
#274879 #792771 #795827 #27792F
split-complementary
#274879 #792F27 #717927
monochromatic
#09111C #182C4B #274879 #3664A7 #5382C8

Accessibility & contrast

On white

9.17
#274879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#274879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #274879
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##274879#FFFFFF#000000##FFFFFF
##2748791.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324C7B
Deuteranopia (green-blind)
#264478
Tritanopia (blue-blind)
#00535A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #274879;
/* rgb */ color: rgb(39, 72, 121);
/* oklch */ color: oklch(40.2% 0.092 258.2);
Tailwind
colors: {
  custom: {
    50: '#6a7aa0',
    500: '#274879',
    950: '#000000',
  },
}
SCSS
$custom: #274879;
$custom-light: #6a7aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#274879",
  "rgb": {
    "r": 39,
    "g": 72,
    "b": 121
  },
  "hsl": {
    "h": 215.854,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40234,
    "c": 0.09165,
    "h": 258.2
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#274879
secondary
#AB8751
accent
#A24DDB
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #274879

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

Preview Lab → · Contrast checker → · Palette generator →

#274879 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva