#334283#334283

#334283 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.2% C 0.110 H 270.9°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#334283
RGBrgb(51, 66, 131)
HSLhsl(229, 44%, 36%)
HSVhsv(229, 61%, 51%)
CMYKcmyk(61.1%, 49.6%, 0%, 48.6%)
CIE-LABlab(30.01, 15.28, -38.54)
CIE-LCHlch(30.01, 41.46, 291.63°)
OKLaboklab(40.23% 0.0018 -0.1101)
OKLCHoklch(40.23% 0.11 270.9)
XYZxyz(7.4088, 6.2383, 22.2820)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334283 #837433
analogous
#336A83 #334283 #4C3383
triadic
#334283 #833342 #428333
tetradic
#334283 #83336A #837433 #33834C
square
#334283 #83336A #837433 #33834C
split-complementary
#334283 #834C33 #6A8333
monochromatic
#11162B #222C57 #334283 #4458AF #6B7CC5

Accessibility & contrast

On white

9.34
#334283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#334283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334283
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334283#FFFFFF#000000##FFFFFF
##3342831.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224A85
Deuteranopia (green-blind)
#154382
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #334283;
/* rgb */ color: rgb(51, 66, 131);
/* oklch */ color: oklch(40.2% 0.110 270.9);
Tailwind
colors: {
  custom: {
    50: '#7276a7',
    500: '#334283',
    950: '#000000',
  },
}
SCSS
$custom: #334283;
$custom-light: #7276a7;
$custom-dark: #000000;
JSON
{
  "hex": "#334283",
  "rgb": {
    "r": 51,
    "g": 66,
    "b": 131
  },
  "hsl": {
    "h": 228.75,
    "s": 43.956,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40228,
    "c": 0.11011,
    "h": 270.9
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#334283
secondary
#ADA065
accent
#BC54D4
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #334283

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

Preview Lab → · Contrast checker → · Palette generator →

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