#2838AF#2838AF

#2838AF is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.188 H 269.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2838AF
RGBrgb(40, 56, 175)
HSLhsl(233, 63%, 42%)
HSVhsv(233, 77%, 69%)
CMYKcmyk(77.1%, 68%, 0%, 31.4%)
CIE-LABlab(30.34, 36.51, -64.83)
CIE-LCHlch(30.34, 74.40, 299.39°)
OKLaboklab(41.42% -0.001 -0.1876)
OKLCHoklch(41.42% 0.188 269.7)
XYZxyz(10.0245, 6.3735, 41.2510)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2838AF #AF9F28
analogous
#287CAF #2838AF #5C28AF
triadic
#2838AF #AF2838 #38AF28
tetradic
#2838AF #AF287C #AF9F28 #28AF5C
square
#2838AF #AF287C #AF9F28 #28AF5C
split-complementary
#2838AF #AF5C28 #7CAF28
monochromatic
#11184B #1D287D #2838AF #4152D4 #737FDF

Accessibility & contrast

On white

9.23
#2838AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2838AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2838AF
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2838AF#FFFFFF#000000##FFFFFF
##2838AF1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0041AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2838af;
/* rgb */ color: rgb(40, 56, 175);
/* oklch */ color: oklch(41.4% 0.188 269.7);
Tailwind
colors: {
  custom: {
    50: '#786fc8',
    500: '#2838af',
    950: '#000000',
  },
}
SCSS
$custom: #2838af;
$custom-light: #786fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2838af",
  "rgb": {
    "r": 40,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 232.889,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41418,
    "c": 0.18764,
    "h": 269.7
  },
  "luminance": 0.06375
}

Semantic roles & 50–950 ramp

primary
#2838AF
secondary
#C6BB6D
accent
#D242E6
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2838AF

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

Preview Lab → · Contrast checker → · Palette generator →

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