#2038AF#2038AF

#2038AF is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.1% C 0.190 H 267.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#2038AF
RGBrgb(32, 56, 175)
HSLhsl(230, 69%, 41%)
HSVhsv(230, 82%, 69%)
CMYKcmyk(81.7%, 68%, 0%, 31.4%)
CIE-LABlab(29.98, 35.81, -65.42)
CIE-LCHlch(29.98, 74.58, 298.70°)
OKLaboklab(41.07% -0.0083 -0.1895)
OKLCHoklch(41.07% 0.19 267.5)
XYZxyz(9.7450, 6.2294, 41.2379)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2038AF #AF9720
analogous
#207FAF #2038AF #4F20AF
triadic
#2038AF #AF2038 #38AF20
tetradic
#2038AF #AF207F #AF9720 #20AF4F
square
#2038AF #AF207F #AF9720 #20AF4F
split-complementary
#2038AF #AF4F20 #7FAF20
monochromatic
#0D1748 #17277B #2038AF #334FDA #667BE3

Accessibility & contrast

On white

9.35
#2038AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2038AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2038AF
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2038AF#FFFFFF#000000##FFFFFF
##2038AF1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2038af;
/* rgb */ color: rgb(32, 56, 175);
/* oklch */ color: oklch(41.1% 0.190 267.5);
Tailwind
colors: {
  custom: {
    50: '#766ec8',
    500: '#2038af',
    950: '#000000',
  },
}
SCSS
$custom: #2038af;
$custom-light: #766ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#2038af",
  "rgb": {
    "r": 32,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 229.93,
    "s": 69.082,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41065,
    "c": 0.18969,
    "h": 267.5
  },
  "luminance": 0.06231
}

Semantic roles & 50–950 ramp

primary
#2038AF
secondary
#C8B762
accent
#CE3CEC
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2038AF

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

Preview Lab → · Contrast checker → · Palette generator →

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