#030838#030838

#030838 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.092 H 267.3°. Best body text is #FFFFFF at 19.16:1 contrast (WCAG AA passes).

Color values

HEX#030838
RGBrgb(3, 8, 56)
HSLhsl(234, 90%, 12%)
HSVhsv(234, 95%, 22%)
CMYKcmyk(94.6%, 85.7%, 0%, 78%)
CIE-LABlab(4.32, 15.70, -30.26)
CIE-LCHlch(4.32, 34.09, 297.42°)
OKLaboklab(17.63% -0.0044 -0.0916)
OKLCHoklch(17.63% 0.092 267.3)
XYZxyz(0.8379, 0.4784, 3.7888)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#030838 #383303
analogous
#032338 #030838 #190338
triadic
#030838 #380308 #083803
tetradic
#030838 #380323 #383303 #033819
square
#030838 #380323 #383303 #033819
split-complementary
#030838 #381903 #233803
monochromatic
#02041D #02041D #030838 #061072 #0919AC

Accessibility & contrast

On white

19.16
#030838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#030838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #030838
19.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##030838#FFFFFF#000000##FFFFFF
##0308381.0019.161.1019.16
#FFFFFF19.161.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#000C37
Tritanopia (blue-blind)
#00161F
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #030838;
/* rgb */ color: rgb(3, 8, 56);
/* oklch */ color: oklch(17.6% 0.092 267.3);
Tailwind
colors: {
  custom: {
    50: '#4d496f',
    500: '#030838',
    950: '#000000',
  },
}
SCSS
$custom: #030838;
$custom-light: #4d496f;
$custom-dark: #000000;
JSON
{
  "hex": "#030838",
  "rgb": {
    "r": 3,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 234.34,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17634,
    "c": 0.0917,
    "h": 267.3
  },
  "luminance": 0.00479
}

Semantic roles & 50–950 ramp

primary
#030838
secondary
#7B721C
accent
#EB29FF
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020107
muted
#78777A

Preview Lab

Preview with #030838

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

Preview Lab → · Contrast checker → · Palette generator →

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