#274F8A#274F8A

#274F8A is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.0% C 0.108 H 258.1°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#274F8A
RGBrgb(39, 79, 138)
HSLhsl(216, 56%, 35%)
HSVhsv(216, 72%, 54%)
CMYKcmyk(71.7%, 42.8%, 0%, 45.9%)
CIE-LABlab(33.68, 6.94, -37.01)
CIE-LCHlch(33.68, 37.65, 280.63°)
OKLaboklab(43.03% -0.0222 -0.1056)
OKLCHoklch(43.03% 0.108 258.1)
XYZxyz(8.2185, 7.8574, 25.1233)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#274F8A #8A6227
analogous
#27808A #274F8A #31278A
triadic
#274F8A #8A274F #4F8A27
tetradic
#274F8A #8A2780 #8A6227 #278A31
square
#274F8A #8A2780 #8A6227 #278A31
split-complementary
#274F8A #8A3127 #808A27
monochromatic
#0C182B #1A345A #274F8A #346ABA #5B8AD1

Accessibility & contrast

On white

8.17
#274F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#274F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #274F8A
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##274F8A#FFFFFF#000000##FFFFFF
##274F8A1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548C
Deuteranopia (green-blind)
#234B89
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #274f8a;
/* rgb */ color: rgb(39, 79, 138);
/* oklch */ color: oklch(43.0% 0.108 258.1);
Tailwind
colors: {
  custom: {
    50: '#6e7fac',
    500: '#274f8a',
    950: '#000000',
  },
}
SCSS
$custom: #274f8a;
$custom-light: #6e7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#274f8a",
  "rgb": {
    "r": 39,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 215.758,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43028,
    "c": 0.10794,
    "h": 258.1
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#274F8A
secondary
#B68F57
accent
#A249DF
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #274F8A

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

Preview Lab → · Contrast checker → · Palette generator →

#274F8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva