#273181#273181

#273181 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.134 H 272.3°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#273181
RGBrgb(39, 49, 129)
HSLhsl(233, 54%, 33%)
HSVhsv(233, 70%, 51%)
CMYKcmyk(69.8%, 62%, 0%, 49.4%)
CIE-LABlab(24.36, 23.96, -46.45)
CIE-LCHlch(24.36, 52.27, 297.28°)
OKLaboklab(35.74% 0.0053 -0.1339)
OKLCHoklch(35.74% 0.134 272.3)
XYZxyz(5.8961, 4.2124, 21.2670)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#273181 #817727
analogous
#275E81 #273181 #4A2781
triadic
#273181 #812731 #318127
tetradic
#273181 #81275E #817727 #27814A
square
#273181 #81275E #817727 #27814A
split-complementary
#273181 #814A27 #5E8127
monochromatic
#0B0D23 #191F52 #273181 #3543B0 #5663CC

Accessibility & contrast

On white

11.40
#273181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#273181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #273181
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##273181#FFFFFF#000000##FFFFFF
##2731811.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#004554
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #273181;
/* rgb */ color: rgb(39, 49, 129);
/* oklch */ color: oklch(35.7% 0.134 272.3);
Tailwind
colors: {
  custom: {
    50: '#6d69a6',
    500: '#273181',
    950: '#000000',
  },
}
SCSS
$custom: #273181;
$custom-light: #6d69a6;
$custom-dark: #000000;
JSON
{
  "hex": "#273181",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 129
  },
  "hsl": {
    "h": 233.333,
    "s": 53.571,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35739,
    "c": 0.13399,
    "h": 272.3
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#273181
secondary
#B1A653
accent
#CD4BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #273181

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

Preview Lab → · Contrast checker → · Palette generator →

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